Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 761620 Details for
Bug 830804
dev-vcs/git-pw-2.2.3 fails tests: - E AssertionError: Expected git_config to be called once. Called 0 times.
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
dev-vcs:git-pw-2.2.3:20220108-170456.log
dev-vcs:git-pw-2.2.3:20220108-170456.log (text/plain), 18.74 KB, created by
Toralf Förster
on 2022-01-08 17:55:46 UTC
(
hide
)
Description:
dev-vcs:git-pw-2.2.3:20220108-170456.log
Filename:
MIME Type:
Creator:
Toralf Förster
Created:
2022-01-08 17:55:46 UTC
Size:
18.74 KB
patch
obsolete
> * Package: dev-vcs/git-pw-2.2.3 > * Repository: gentoo > * Maintainer: dlan@gentoo.org > * USE: abi_x86_64 amd64 elibc_glibc kernel_linux python_targets_python3_9 test userland_GNU > * FEATURES: network-sandbox preserve-libs sandbox test userpriv usersandbox > >>>> Unpacking source... >>>> Unpacking git-pw-2.2.3.tar.gz to /var/tmp/portage/dev-vcs/git-pw-2.2.3/work >>>> Source unpacked in /var/tmp/portage/dev-vcs/git-pw-2.2.3/work >>>> Preparing source in /var/tmp/portage/dev-vcs/git-pw-2.2.3/work/git-pw-2.2.3 ... >>>> Source prepared. >>>> Configuring source in /var/tmp/portage/dev-vcs/git-pw-2.2.3/work/git-pw-2.2.3 ... >>>> Source configured. >>>> Compiling source in /var/tmp/portage/dev-vcs/git-pw-2.2.3/work/git-pw-2.2.3 ... > * python3_9: running distutils-r1_run_phase distutils-r1_python_compile >python3.9 setup.py build -j 4 >DefaultPluginManager load plugin nose.testdata = pyutilib.th.nose_testdata:TestData >DefaultPluginManager load plugin nose.forcedgc = pyutilib.th.nose_gc:ForcedGC >DefaultPluginManager load plugin nose.timeout = pyutilib.th.nose_timeout:TestTimeout >DefaultPluginManager load plugin nose_fixes = nose_fixes.plugin:Plugin >DefaultPluginManager load plugin warningfiltersx = nose_warnings_filters:WarningFilter >DefaultPluginManager load plugin doctest_ignore_unicode = nose_plugin:DoctestIgnoreUnicode >/usr/lib/python3.9/site-packages/setuptools/command/easy_install.py:156: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools. > warnings.warn( >/usr/lib/python3.9/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. > warnings.warn( >running build >running build_py >creating /var/tmp/portage/dev-vcs/git-pw-2.2.3/work/git-pw-2.2.3-python3_9/lib/git_pw >copying git_pw/utils.py -> /var/tmp/portage/dev-vcs/git-pw-2.2.3/work/git-pw-2.2.3-python3_9/lib/git_pw >copying git_pw/shell.py -> /var/tmp/portage/dev-vcs/git-pw-2.2.3/work/git-pw-2.2.3-python3_9/lib/git_pw >copying git_pw/series.py -> /var/tmp/portage/dev-vcs/git-pw-2.2.3/work/git-pw-2.2.3-python3_9/lib/git_pw >copying git_pw/patch.py -> /var/tmp/portage/dev-vcs/git-pw-2.2.3/work/git-pw-2.2.3-python3_9/lib/git_pw >copying git_pw/logger.py -> /var/tmp/portage/dev-vcs/git-pw-2.2.3/work/git-pw-2.2.3-python3_9/lib/git_pw >copying git_pw/config.py -> /var/tmp/portage/dev-vcs/git-pw-2.2.3/work/git-pw-2.2.3-python3_9/lib/git_pw >copying git_pw/bundle.py -> /var/tmp/portage/dev-vcs/git-pw-2.2.3/work/git-pw-2.2.3-python3_9/lib/git_pw >copying git_pw/api.py -> /var/tmp/portage/dev-vcs/git-pw-2.2.3/work/git-pw-2.2.3-python3_9/lib/git_pw >copying git_pw/__init__.py -> /var/tmp/portage/dev-vcs/git-pw-2.2.3/work/git-pw-2.2.3-python3_9/lib/git_pw >running egg_info >creating git_pw.egg-info >writing manifest file 'git_pw.egg-info/SOURCES.txt' >warning: no files found matching 'AUTHORS' >warning: no files found matching 'ChangeLog' >warning: no previously-included files found matching '.gitignore' >warning: no previously-included files found matching '.gitreview' >warning: no previously-included files matching '*.pyc' found anywhere in distribution >writing manifest file 'git_pw.egg-info/SOURCES.txt' >warning: build_py: byte-compiling is disabled, skipping. > >>>> Source compiled. >>>> Test phase: dev-vcs/git-pw-2.2.3 > * python3_9: running distutils-r1_run_phase python_test >python3.9 -m pytest -vv -ra -l -Wdefault >============================= test session starts ============================== >platform linux -- Python 3.9.9, pytest-6.2.5, py-1.11.0, pluggy-1.0.0 -- /usr/bin/python3.9 >cachedir: .pytest_cache >rootdir: /var/tmp/portage/dev-vcs/git-pw-2.2.3/work/git-pw-2.2.3 >plugins: anyio-3.4.0, console-scripts-1.2.2, Faker-11.3.0, tornado-0.8.1, xprocess-0.18.1, datadir-1.3.1, httpbin-1.0.1, httpx-0.17.3, verbose-parametrize-1.7.0, pylama-8.3.6, ament-lint-0.11.2, ament-flake8-0.11.2, ament-pep257-0.11.2, ament-copyright-0.11.2, rerunfailures-10.2, typeguard-2.13.3, regressions-2.3.0, ordering-0.6, shutil-1.7.0, expect-1.1.0, betamax-0.8.1, forked-1.4.0, xdist-2.5.0, cov-3.0.0 >collecting ... collected 84 items > >tests/test_api.py::test_get_server_undefined PASSED [ 1%] >tests/test_api.py::test_get_server_missing_version PASSED [ 2%] >tests/test_api.py::test_get_server_missing_version_and_path PASSED [ 3%] >tests/test_api.py::test_get_project_undefined PASSED [ 4%] >tests/test_api.py::test_get_project_wildcard PASSED [ 5%] >tests/test_api.py::test_version_missing PASSED [ 7%] >tests/test_api.py::test_version PASSED [ 8%] >tests/test_api.py::test_retrieve_filter_ids_too_short PASSED [ 9%] >tests/test_api.py::test_retrieve_filter_ids_no_matches PASSED [ 10%] >tests/test_api.py::test_retrieve_filter_ids_multiple_matches_1_0 PASSED [ 11%] >tests/test_api.py::test_retrieve_filter_ids_multiple_matches_1_1 PASSED [ 13%] >tests/test_api.py::test_retrieve_filter_ids PASSED [ 14%] >tests/test_bundle.py::GetBundleTestCase::test_get_by_id PASSED [ 15%] >tests/test_bundle.py::GetBundleTestCase::test_get_by_name PASSED [ 16%] >tests/test_bundle.py::GetBundleTestCase::test_get_by_name_too_few_matches PASSED [ 17%] >tests/test_bundle.py::GetBundleTestCase::test_get_by_name_too_many_matches PASSED [ 19%] >tests/test_bundle.py::ApplyTestCase::test_apply_with_args PASSED [ 20%] >tests/test_bundle.py::ApplyTestCase::test_apply_without_args PASSED [ 21%] >tests/test_bundle.py::DownloadTestCase::test_download PASSED [ 22%] >tests/test_bundle.py::DownloadTestCase::test_download_to_file PASSED [ 23%] >tests/test_bundle.py::ShowTestCase::test_show PASSED [ 25%] >tests/test_bundle.py::ListTestCase::test_list PASSED [ 26%] >tests/test_bundle.py::ListTestCase::test_list_api_v1_1 PASSED [ 27%] >tests/test_bundle.py::ListTestCase::test_list_with_filters PASSED [ 28%] >tests/test_bundle.py::ListTestCase::test_list_with_formatting PASSED [ 29%] >tests/test_bundle.py::ListTestCase::test_list_with_multiple_filters PASSED [ 30%] >tests/test_bundle.py::ListTestCase::test_list_with_wildcard_filters PASSED [ 32%] >tests/test_bundle.py::CreateTestCase::test_create PASSED [ 33%] >tests/test_bundle.py::CreateTestCase::test_create_api_v1_1 PASSED [ 34%] >tests/test_bundle.py::CreateTestCase::test_create_with_public PASSED [ 35%] >tests/test_bundle.py::UpdateTestCase::test_update PASSED [ 36%] >tests/test_bundle.py::UpdateTestCase::test_update_api_v1_1 PASSED [ 38%] >tests/test_bundle.py::UpdateTestCase::test_update_with_public PASSED [ 39%] >tests/test_bundle.py::DeleteTestCase::test_delete PASSED [ 40%] >tests/test_bundle.py::DeleteTestCase::test_delete_api_v1_1 PASSED [ 41%] >tests/test_bundle.py::AddTestCase::test_add PASSED [ 42%] >tests/test_bundle.py::AddTestCase::test_add_api_v1_1 PASSED [ 44%] >tests/test_bundle.py::RemoveTestCase::test_remove PASSED [ 45%] >tests/test_bundle.py::RemoveTestCase::test_remove_api_v1_1 PASSED [ 46%] >tests/test_bundle.py::RemoveTestCase::test_remove_empty PASSED [ 47%] >tests/test_patch.py::ApplyTestCase::test_apply PASSED [ 48%] >tests/test_patch.py::ApplyTestCase::test_apply_with_args PASSED [ 50%] >tests/test_patch.py::ApplyTestCase::test_apply_with_series PASSED [ 51%] >tests/test_patch.py::ApplyTestCase::test_apply_without_deps PASSED [ 52%] >tests/test_patch.py::DownloadTestCase::test_download PASSED [ 53%] >tests/test_patch.py::DownloadTestCase::test_download_diff PASSED [ 54%] >tests/test_patch.py::DownloadTestCase::test_download_diff_to_file PASSED [ 55%] >tests/test_patch.py::DownloadTestCase::test_download_to_file PASSED [ 57%] >tests/test_patch.py::ShowTestCase::test_show PASSED [ 58%] >tests/test_patch.py::UpdateTestCase::test_update_no_arguments PASSED [ 59%] >tests/test_patch.py::UpdateTestCase::test_update_with_arguments PASSED [ 60%] >tests/test_patch.py::UpdateTestCase::test_update_with_delegate PASSED [ 61%] >tests/test_patch.py::UpdateTestCase::test_update_with_invalid_state PASSED [ 63%] >tests/test_patch.py::ListTestCase::test_list PASSED [ 64%] >tests/test_patch.py::ListTestCase::test_list_api_v1_1 PASSED [ 65%] >tests/test_patch.py::ListTestCase::test_list_with_filters PASSED [ 66%] >tests/test_patch.py::ListTestCase::test_list_with_formatting PASSED [ 67%] >tests/test_patch.py::ListTestCase::test_list_with_multiple_filters PASSED [ 69%] >tests/test_patch.py::ListTestCase::test_list_with_wildcard_filters PASSED [ 70%] >tests/test_series.py::ApplyTestCase::test_apply_with_args PASSED [ 71%] >tests/test_series.py::ApplyTestCase::test_apply_without_args PASSED [ 72%] >tests/test_series.py::DownloadTestCase::test_download PASSED [ 73%] >tests/test_series.py::DownloadTestCase::test_download_separate_to_dir PASSED [ 75%] >tests/test_series.py::DownloadTestCase::test_download_to_file PASSED [ 76%] >tests/test_series.py::ShowTestCase::test_show PASSED [ 77%] >tests/test_series.py::ListTestCase::test_list PASSED [ 78%] >tests/test_series.py::ListTestCase::test_list_api_v1_1 PASSED [ 79%] >tests/test_series.py::ListTestCase::test_list_with_filters PASSED [ 80%] >tests/test_series.py::ListTestCase::test_list_with_formatting PASSED [ 82%] >tests/test_series.py::ListTestCase::test_list_with_multiple_filters PASSED [ 83%] >tests/test_series.py::ListTestCase::test_list_with_wildcard_filters PASSED [ 84%] >tests/test_utils.py::test_git_config PASSED [ 85%] >tests/test_utils.py::test_git_config_unicode PASSED [ 86%] >tests/test_utils.py::test_git_config_error PASSED [ 88%] >tests/test_utils.py::test_echo_via_pager_env_GIT_PAGER PASSED [ 89%] >tests/test_utils.py::test_echo_via_pager_config FAILED [ 90%] >tests/test_utils.py::test_echo_via_pager_env_PAGER FAILED [ 91%] >tests/test_utils.py::test_echo_via_pager_env_default FAILED [ 92%] >tests/test_utils.py::test_tabulate_table PASSED [ 94%] >tests/test_utils.py::test_tabulate_simple PASSED [ 95%] >tests/test_utils.py::test_tabulate_csv PASSED [ 96%] >tests/test_utils.py::test_tabulate_yaml PASSED [ 97%] >tests/test_utils.py::test_tabulate_git_config PASSED [ 98%] >tests/test_utils.py::test_tabulate_default PASSED [100%] > >=================================== FAILURES =================================== >__________________________ test_echo_via_pager_config __________________________ > >mock_inner = <MagicMock name='_echo_via_pager' id='140616162211056'> >mock_tabulate = <MagicMock name='_tabulate' id='140616162125904'> >mock_config = <MagicMock name='git_config' id='140616162137952'> > > @mock.patch.object(utils, 'git_config', return_value='bar') > @mock.patch.object(utils, '_tabulate') > @mock.patch.object(utils, '_echo_via_pager') > @mock.patch.dict(os.environ, {'PAGER': 'baz'}) > def test_echo_via_pager_config(mock_inner, mock_tabulate, mock_config): > utils.echo_via_pager('test', ('foo',), None) > >> mock_config.assert_called_once_with('core.parser') > >mock_config = <MagicMock name='git_config' id='140616162137952'> >mock_inner = <MagicMock name='_echo_via_pager' id='140616162211056'> >mock_tabulate = <MagicMock name='_tabulate' id='140616162125904'> > >tests/test_utils.py:59: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <MagicMock name='git_config' id='140616162137952'> >args = ('core.parser',), kwargs = {} >msg = "Expected 'git_config' to be called once. Called 0 times." > > def assert_called_once_with(self, /, *args, **kwargs): > """assert that the mock was called exactly once and that that call was > with the specified arguments.""" > if not self.call_count == 1: > msg = ("Expected '%s' to be called once. Called %s times.%s" > % (self._mock_name or 'mock', > self.call_count, > self._calls_repr())) >> raise AssertionError(msg) >E AssertionError: Expected 'git_config' to be called once. Called 0 times. > >args = ('core.parser',) >kwargs = {} >msg = "Expected 'git_config' to be called once. Called 0 times." >self = <MagicMock name='git_config' id='140616162137952'> > >/usr/lib/python3.9/unittest/mock.py:918: AssertionError >________________________ test_echo_via_pager_env_PAGER _________________________ > >mock_inner = <MagicMock name='_echo_via_pager' id='140616162555216'> >mock_tabulate = <MagicMock name='_tabulate' id='140616163232448'> >mock_config = <MagicMock name='git_config' id='140616162325264'> > > @mock.patch.object(utils, 'git_config', return_value=None) > @mock.patch.object(utils, '_tabulate') > @mock.patch.object(utils, '_echo_via_pager') > @mock.patch.dict(os.environ, {'PAGER': 'baz'}) > def test_echo_via_pager_env_PAGER(mock_inner, mock_tabulate, mock_config): > utils.echo_via_pager('test', ('foo',), None) > >> mock_config.assert_called_once_with('core.parser') > >mock_config = <MagicMock name='git_config' id='140616162325264'> >mock_inner = <MagicMock name='_echo_via_pager' id='140616162555216'> >mock_tabulate = <MagicMock name='_tabulate' id='140616163232448'> > >tests/test_utils.py:71: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <MagicMock name='git_config' id='140616162325264'> >args = ('core.parser',), kwargs = {} >msg = "Expected 'git_config' to be called once. Called 0 times." > > def assert_called_once_with(self, /, *args, **kwargs): > """assert that the mock was called exactly once and that that call was > with the specified arguments.""" > if not self.call_count == 1: > msg = ("Expected '%s' to be called once. Called %s times.%s" > % (self._mock_name or 'mock', > self.call_count, > self._calls_repr())) >> raise AssertionError(msg) >E AssertionError: Expected 'git_config' to be called once. Called 0 times. > >args = ('core.parser',) >kwargs = {} >msg = "Expected 'git_config' to be called once. Called 0 times." >self = <MagicMock name='git_config' id='140616162325264'> > >/usr/lib/python3.9/unittest/mock.py:918: AssertionError >_______________________ test_echo_via_pager_env_default ________________________ > >mock_inner = <MagicMock name='_echo_via_pager' id='140616162832048'> >mock_tabulate = <MagicMock name='_tabulate' id='140616163126192'> >mock_config = <MagicMock name='git_config' id='140616163272352'> > > @mock.patch.object(utils, 'git_config', return_value=None) > @mock.patch.object(utils, '_tabulate') > @mock.patch.object(utils, '_echo_via_pager') > @mock.patch.dict(os.environ, {'PAGER': ''}) > def test_echo_via_pager_env_default(mock_inner, mock_tabulate, mock_config): > utils.echo_via_pager('test', ('foo',), None) > >> mock_config.assert_called_once_with('core.parser') > >mock_config = <MagicMock name='git_config' id='140616163272352'> >mock_inner = <MagicMock name='_echo_via_pager' id='140616162832048'> >mock_tabulate = <MagicMock name='_tabulate' id='140616163126192'> > >tests/test_utils.py:83: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <MagicMock name='git_config' id='140616163272352'> >args = ('core.parser',), kwargs = {} >msg = "Expected 'git_config' to be called once. Called 0 times." > > def assert_called_once_with(self, /, *args, **kwargs): > """assert that the mock was called exactly once and that that call was > with the specified arguments.""" > if not self.call_count == 1: > msg = ("Expected '%s' to be called once. Called %s times.%s" > % (self._mock_name or 'mock', > self.call_count, > self._calls_repr())) >> raise AssertionError(msg) >E AssertionError: Expected 'git_config' to be called once. Called 0 times. > >args = ('core.parser',) >kwargs = {} >msg = "Expected 'git_config' to be called once. Called 0 times." >self = <MagicMock name='git_config' id='140616163272352'> > >/usr/lib/python3.9/unittest/mock.py:918: AssertionError >=========================== short test summary info ============================ >FAILED tests/test_utils.py::test_echo_via_pager_config - AssertionError: Expe... >FAILED tests/test_utils.py::test_echo_via_pager_env_PAGER - AssertionError: E... >FAILED tests/test_utils.py::test_echo_via_pager_env_default - AssertionError:... >========================= 3 failed, 81 passed in 1.62s ========================= >pytest-xprocess reminder::Be sure to terminate the started process by running 'pytest --xkill' if you have not explicitly done so in your fixture with 'xprocess.getinfo(<process_name>).terminate()'. > * ERROR: dev-vcs/git-pw-2.2.3::gentoo failed (test phase): > * pytest failed with python3.9 > * > * Call stack: > * ebuild.sh, line 127: Called src_test > * environment, line 2980: Called distutils-r1_src_test > * environment, line 1297: Called _distutils-r1_run_foreach_impl 'python_test' > * environment, line 531: Called python_foreach_impl 'distutils-r1_run_phase' 'python_test' > * environment, line 2642: Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' > * environment, line 2158: Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' > * environment, line 2156: Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'python_test' > * environment, line 851: Called distutils-r1_run_phase 'python_test' > * environment, line 1236: Called python_test > * environment, line 2938: Called distutils-r1_python_test > * environment, line 1193: Called epytest > * environment, line 1674: Called die > * The specific snippet of code: > * "${@}" || die -n "pytest failed with ${EPYTHON}"; > * > * If you need support, post the output of `emerge --info '=dev-vcs/git-pw-2.2.3::gentoo'`, > * the complete build log and the output of `emerge -pqv '=dev-vcs/git-pw-2.2.3::gentoo'`. > * The complete build log is located at '/var/log/portage/dev-vcs:git-pw-2.2.3:20220108-170456.log'. > * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-vcs/git-pw-2.2.3/temp/build.log'. > * The ebuild environment file is located at '/var/tmp/portage/dev-vcs/git-pw-2.2.3/temp/environment'. > * Working directory: '/var/tmp/portage/dev-vcs/git-pw-2.2.3/work/git-pw-2.2.3' > * S: '/var/tmp/portage/dev-vcs/git-pw-2.2.3/work/git-pw-2.2.3' >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 830804
:
761619
| 761620 |
761621
|
761622
|
761623
|
761624
|
761625