Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 595198 Details for
Bug 699484
dev-python/pytest-mock-1.10.0: test_detailed_introspection fails
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
build.log
build.log (text/plain), 25.35 KB, created by
Rolf Eike Beer
on 2019-11-06 21:58:09 UTC
(
hide
)
Description:
build.log
Filename:
MIME Type:
Creator:
Rolf Eike Beer
Created:
2019-11-06 21:58:09 UTC
Size:
25.35 KB
patch
obsolete
>[32;01m * [39;49;00mPackage: dev-python/pytest-mock-1.10.0 >[32;01m * [39;49;00mRepository: gentoo >[32;01m * [39;49;00mMaintainer: zmedico@gentoo.org python@gentoo.org >[32;01m * [39;49;00mUSE: elibc_glibc hppa kernel_linux python_targets_python2_7 python_targets_python3_6 userland_GNU >[32;01m * [39;49;00mFEATURES: network-sandbox preserve-libs sandbox test userpriv usersandbox >>>> Unpacking source... >>>> Unpacking pytest-mock-1.10.0.tar.gz to /var/tmp/portage/dev-python/pytest-mock-1.10.0/work >>>> Source unpacked in /var/tmp/portage/dev-python/pytest-mock-1.10.0/work >>>> Preparing source in /var/tmp/portage/dev-python/pytest-mock-1.10.0/work/pytest-mock-1.10.0 ... >>>> Source prepared. >>>> Configuring source in /var/tmp/portage/dev-python/pytest-mock-1.10.0/work/pytest-mock-1.10.0 ... >>>> Source configured. >>>> Compiling source in /var/tmp/portage/dev-python/pytest-mock-1.10.0/work/pytest-mock-1.10.0 ... > [32;01m*[0m python2_7: running distutils-r1_run_phase distutils-r1_python_compile >python2.7 setup.py build >running build >running build_py >copying pytest_mock.py -> /var/tmp/portage/dev-python/pytest-mock-1.10.0/work/pytest-mock-1.10.0-python2_7/lib >copying _pytest_mock_version.py -> /var/tmp/portage/dev-python/pytest-mock-1.10.0/work/pytest-mock-1.10.0-python2_7/lib >warning: build_py: byte-compiling is disabled, skipping. > > [32;01m*[0m python3_6: running distutils-r1_run_phase distutils-r1_python_compile >python3.6 setup.py build >running build >running build_py >copying pytest_mock.py -> /var/tmp/portage/dev-python/pytest-mock-1.10.0/work/pytest-mock-1.10.0-python3_6/lib >copying _pytest_mock_version.py -> /var/tmp/portage/dev-python/pytest-mock-1.10.0/work/pytest-mock-1.10.0-python3_6/lib >warning: build_py: byte-compiling is disabled, skipping. > >>>> Source compiled. >>>> Test phase: dev-python/pytest-mock-1.10.0 > [32;01m*[0m python2_7: running distutils-r1_run_phase python_test >========================================================================================================================= test session starts ========================================================================================================================== >platform linux2 -- Python 2.7.14, pytest-4.5.0, py-1.5.4, pluggy-0.11.0 -- /usr/bin/python2.7 >cachedir: .pytest_cache >hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('/var/tmp/portage/dev-python/pytest-mock-1.10.0/work/pytest-mock-1.10.0/.hypothesis/examples') >rootdir: /var/tmp/portage/dev-python/pytest-mock-1.10.0/work/pytest-mock-1.10.0 >plugins: mock-1.10.0, xdist-1.28.0, virtualenv-1.2.11, shutil-1.2.11, forked-0.2, expect-1.1.0, describe-0.11.1, cov-2.6.1, hypothesis-3.85.1, flaky-3.5.3 >collecting ... collected 47 items > >test_pytest_mock.py::test_mock_patches[mock_using_patch_object] PASSED [ 2%] >test_pytest_mock.py::test_mock_patches[mock_using_patch] PASSED [ 4%] >test_pytest_mock.py::test_mock_patches[mock_using_patch_multiple] PASSED [ 6%] >test_pytest_mock.py::test_mock_patch_dict PASSED [ 8%] >test_pytest_mock.py::test_mock_patch_dict_resetall PASSED [ 10%] >test_pytest_mock.py::test_deprecated_mock PASSED [ 12%] >test_pytest_mock.py::test_mocker_aliases[MagicMock] PASSED [ 14%] >test_pytest_mock.py::test_mocker_aliases[NonCallableMock] PASSED [ 17%] >test_pytest_mock.py::test_mocker_aliases[PropertyMock] PASSED [ 19%] >test_pytest_mock.py::test_mocker_aliases[Mock] PASSED [ 21%] >test_pytest_mock.py::test_mocker_aliases[call] PASSED [ 23%] >test_pytest_mock.py::test_mocker_aliases[ANY] PASSED [ 25%] >test_pytest_mock.py::test_mocker_aliases[create_autospec] PASSED [ 27%] >test_pytest_mock.py::test_mocker_aliases[sentinel] PASSED [ 29%] >test_pytest_mock.py::test_mocker_aliases[mock_open] PASSED [ 31%] >test_pytest_mock.py::test_mocker_resetall PASSED [ 34%] >test_pytest_mock.py::TestMockerStub::test_call PASSED [ 36%] >test_pytest_mock.py::TestMockerStub::test_repr_with_no_name PASSED [ 38%] >test_pytest_mock.py::TestMockerStub::test_repr_with_name PASSED [ 40%] >test_pytest_mock.py::TestMockerStub::test_failure_message_with_no_name PASSED [ 42%] >test_pytest_mock.py::TestMockerStub::test_failure_message_with_name[None] PASSED [ 44%] >test_pytest_mock.py::TestMockerStub::test_failure_message_with_name[] PASSED [ 46%] >test_pytest_mock.py::TestMockerStub::test_failure_message_with_name[f] PASSED [ 48%] >test_pytest_mock.py::TestMockerStub::test_failure_message_with_name[The Castle of aaarrrrggh] PASSED [ 51%] >test_pytest_mock.py::test_instance_method_spy PASSED [ 53%] >test_pytest_mock.py::test_instance_method_by_class_spy PASSED [ 55%] >test_pytest_mock.py::test_instance_method_by_subclass_spy PASSED [ 57%] >test_pytest_mock.py::test_class_method_spy PASSED [ 59%] >test_pytest_mock.py::test_class_method_subclass_spy XFAIL [ 61%] >test_pytest_mock.py::test_class_method_with_metaclass_spy PASSED [ 63%] >test_pytest_mock.py::test_static_method_spy PASSED [ 65%] >test_pytest_mock.py::test_static_method_subclass_spy XFAIL [ 68%] >test_pytest_mock.py::test_assert_not_called_wrapper PASSED [ 70%] >test_pytest_mock.py::test_assert_called_with_wrapper PASSED [ 72%] >test_pytest_mock.py::test_assert_called_once_with_wrapper PASSED [ 74%] >test_pytest_mock.py::test_assert_called_once_wrapper PASSED [ 76%] >test_pytest_mock.py::test_assert_called_wrapper PASSED [ 78%] >test_pytest_mock.py::test_assert_called_args_with_introspection PASSED [ 80%] >test_pytest_mock.py::test_assert_called_kwargs_with_introspection PASSED [ 82%] >test_pytest_mock.py::test_assert_any_call_wrapper PASSED [ 85%] >test_pytest_mock.py::test_assert_has_calls PASSED [ 87%] >test_pytest_mock.py::test_monkeypatch_ini PASSED [ 89%] >test_pytest_mock.py::test_parse_ini_boolean PASSED [ 91%] >test_pytest_mock.py::test_patched_method_parameter_name PASSED [ 93%] >test_pytest_mock.py::test_monkeypatch_native PASSED [ 95%] >test_pytest_mock.py::test_detailed_introspection FAILED [ 97%] >test_pytest_mock.py::test_assert_called_with_unicode_arguments PASSED [100%] > >=============================================================================================================================== FAILURES =============================================================================================================================== >_____________________________________________________________________________________________________________________ test_detailed_introspection ______________________________________________________________________________________________________________________ > >testdir = <Testdir local('/var/tmp/portage/dev-python/pytest-mock-1.10.0/temp/pytest-of-portage/pytest-0/test_detailed_introspection0')> > > @pytest.mark.usefixtures('needs_assert_rewrite') > def test_detailed_introspection(testdir): > """Check that the "mock_use_standalone" is being used. > """ > testdir.makepyfile(""" > def test(mocker): > m = mocker.Mock() > m('fo') > m.assert_called_once_with('', bar=4) > """) > result = testdir.runpytest('-s') > result.stdout.fnmatch_lines([ > "*AssertionError: Expected call: mock('', bar=4)*", > "*Actual call: mock('fo')*", > "*pytest introspection follows:*", > '*Args:', > "*assert ('fo',) == ('',)", > "*At index 0 diff: 'fo' != ''*", > "*Use -v to get the full diff*", > "*Kwargs:*", > "*assert {} == {'bar': 4}*", > "*Right contains more items:*", > "*{'bar': 4}*", >> "*Use -v to get the full diff*", > ]) >E Failed: nomatch: "*AssertionError: Expected call: mock('', bar=4)*" >E and: u'========================================================================================================================= test session starts ==========================================================================================================================' >E and: u'platform linux2 -- Python 2.7.14, pytest-4.5.0, py-1.5.4, pluggy-0.11.0' >E and: u"hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('/var/tmp/portage/dev-python/pytest-mock-1.10.0/work/pytest-mock-1.10.0/.hypothesis/examples')" >E and: u'rootdir: /var/tmp/portage/dev-python/pytest-mock-1.10.0/temp/pytest-of-portage/pytest-0/test_detailed_introspection0' >E and: u'plugins: mock-1.10.0, xdist-1.28.0, virtualenv-1.2.11, shutil-1.2.11, forked-0.2, expect-1.1.0, describe-0.11.1, cov-2.6.1, hypothesis-3.85.1, flaky-3.5.3' >E and: u'collected 1 item' >E and: u'' >E and: u'test_detailed_introspection.py F' >E and: u'' >E and: u'=============================================================================================================================== FAILURES ===============================================================================================================================' >E and: u'_________________________________________________________________________________________________________________________________ test _________________________________________________________________________________________________________________________________' >E and: u'' >E and: u'mocker = <pytest_mock.MockFixture object at 0xf7d136f0>' >E and: u'' >E and: u' def test(mocker):' >E and: u' m = mocker.Mock()' >E and: u" m('fo')" >E and: u"> m.assert_called_once_with('', bar=4)" >E fnmatch: "*AssertionError: Expected call: mock('', bar=4)*" >E with: u"E AssertionError: Expected call: mock('', bar=4)" >E fnmatch: "*Actual call: mock('fo')*" >E with: u"E Actual call: mock('fo')" >E nomatch: '*pytest introspection follows:*' >E and: u'E ' >E fnmatch: '*pytest introspection follows:*' >E with: u'E pytest introspection follows:' >E nomatch: '*Args:' >E and: u'E ' >E fnmatch: '*Args:' >E with: u'E Args:' >E fnmatch: "*assert ('fo',) == ('',)" >E with: u"E assert ('fo',) == ('',)" >E fnmatch: "*At index 0 diff: 'fo' != ''*" >E with: u"E At index 0 diff: 'fo' != ''" >E fnmatch: '*Use -v to get the full diff*' >E with: u'E Use -v to get the full diff' >E fnmatch: '*Kwargs:*' >E with: u'E Kwargs:' >E fnmatch: "*assert {} == {'bar': 4}*" >E with: u"E assert {} == {'bar': 4}" >E nomatch: '*Right contains more items:*' >E and: u'E Right contains 1 more item:' >E and: u"E {'bar': 4}" >E and: u'E Use -v to get the full diff' >E and: u'' >E and: u'test_detailed_introspection.py:4: AssertionError' >E and: u'===Flaky Test Report===' >E and: u'' >E and: u'' >E and: u'===End Flaky Test Report===' >E and: u'======================================================================================================================= 1 failed in 0.08 seconds =======================================================================================================================' >E and: u'' >E remains unmatched: '*Right contains more items:*' > >../../../../work/pytest-mock-1.10.0/test_pytest_mock.py:574: Failed >------------------------------------------------------------------------------------------------------------------------- Captured stdout call ------------------------------------------------------------------------------------------------------------------------- >========================================================================================================================= test session starts ========================================================================================================================== >platform linux2 -- Python 2.7.14, pytest-4.5.0, py-1.5.4, pluggy-0.11.0 >hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('/var/tmp/portage/dev-python/pytest-mock-1.10.0/work/pytest-mock-1.10.0/.hypothesis/examples') >rootdir: /var/tmp/portage/dev-python/pytest-mock-1.10.0/temp/pytest-of-portage/pytest-0/test_detailed_introspection0 >plugins: mock-1.10.0, xdist-1.28.0, virtualenv-1.2.11, shutil-1.2.11, forked-0.2, expect-1.1.0, describe-0.11.1, cov-2.6.1, hypothesis-3.85.1, flaky-3.5.3 >collected 1 item > >test_detailed_introspection.py F > >=============================================================================================================================== FAILURES =============================================================================================================================== >_________________________________________________________________________________________________________________________________ test _________________________________________________________________________________________________________________________________ > >mocker = <pytest_mock.MockFixture object at 0xf7d136f0> > > def test(mocker): > m = mocker.Mock() > m('fo') >> m.assert_called_once_with('', bar=4) >E AssertionError: Expected call: mock('', bar=4) >E Actual call: mock('fo') >E >E pytest introspection follows: >E >E Args: >E assert ('fo',) == ('',) >E At index 0 diff: 'fo' != '' >E Use -v to get the full diff >E Kwargs: >E assert {} == {'bar': 4} >E Right contains 1 more item: >E {'bar': 4} >E Use -v to get the full diff > >test_detailed_introspection.py:4: AssertionError >===Flaky Test Report=== > > >===End Flaky Test Report=== >======================================================================================================================= 1 failed in 0.08 seconds ======================================================================================================================= >=========================================================================================================================== warnings summary =========================================================================================================================== >test_pytest_mock.py::test_deprecated_mock > /var/tmp/portage/dev-python/pytest-mock-1.10.0/work/pytest-mock-1.10.0/pytest_mock.py:177: DeprecationWarning: "mock" fixture has been deprecated, use "mocker" instead > DeprecationWarning) > >-- Docs: https://docs.pytest.org/en/latest/warnings.html >===Flaky Test Report=== > > >===End Flaky Test Report=== >===================================================================================================== 1 failed, 44 passed, 2 xfailed, 1 warnings in 11.57 seconds ====================================================================================================== > [31;01m*[0m ERROR: dev-python/pytest-mock-1.10.0::gentoo failed (test phase): > [31;01m*[0m Tests fail with python2.7 > [31;01m*[0m > [31;01m*[0m Call stack: > [31;01m*[0m ebuild.sh, line 125: Called src_test > [31;01m*[0m environment, line 2633: Called distutils-r1_src_test > [31;01m*[0m environment, line 868: Called _distutils-r1_run_foreach_impl 'python_test' > [31;01m*[0m environment, line 312: Called python_foreach_impl 'distutils-r1_run_phase' 'python_test' > [31;01m*[0m environment, line 2162: Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' > [31;01m*[0m environment, line 1522: Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' > [31;01m*[0m environment, line 1520: Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'python_test' > [31;01m*[0m environment, line 524: Called distutils-r1_run_phase 'python_test' > [31;01m*[0m environment, line 799: Called python_test > [31;01m*[0m environment, line 2532: Called die > [31;01m*[0m The specific snippet of code: > [31;01m*[0m py.test -vv test_pytest_mock.py || die "Tests fail with ${EPYTHON}" > [31;01m*[0m > [31;01m*[0m If you need support, post the output of `emerge --info '=dev-python/pytest-mock-1.10.0::gentoo'`, > [31;01m*[0m the complete build log and the output of `emerge -pqv '=dev-python/pytest-mock-1.10.0::gentoo'`. > [31;01m*[0m The complete build log is located at '/var/tmp/portage/dev-python/pytest-mock-1.10.0/temp/build.log'. > [31;01m*[0m The ebuild environment file is located at '/var/tmp/portage/dev-python/pytest-mock-1.10.0/temp/environment'. > [31;01m*[0m Working directory: '/var/tmp/portage/dev-python/pytest-mock-1.10.0/work/pytest-mock-1.10.0' > [31;01m*[0m S: '/var/tmp/portage/dev-python/pytest-mock-1.10.0/work/pytest-mock-1.10.0'
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 699484
: 595198