* Package: dev-python/pytest-mock-1.10.0  * Repository: gentoo  * Maintainer: zmedico@gentoo.org python@gentoo.org  * USE: elibc_glibc hppa kernel_linux python_targets_python2_7 python_targets_python3_6 userland_GNU  * FEATURES: 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 ... * 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. * 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 * 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 = @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 = ' 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 = 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 ====================================================================================================== * ERROR: dev-python/pytest-mock-1.10.0::gentoo failed (test phase): * Tests fail with python2.7 * * Call stack: * ebuild.sh, line 125: Called src_test * environment, line 2633: Called distutils-r1_src_test * environment, line 868: Called _distutils-r1_run_foreach_impl 'python_test' * environment, line 312: Called python_foreach_impl 'distutils-r1_run_phase' 'python_test' * environment, line 2162: Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' * environment, line 1522: Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' * environment, line 1520: Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'python_test' * environment, line 524: Called distutils-r1_run_phase 'python_test' * environment, line 799: Called python_test * environment, line 2532: Called die * The specific snippet of code: * py.test -vv test_pytest_mock.py || die "Tests fail with ${EPYTHON}" * * If you need support, post the output of `emerge --info '=dev-python/pytest-mock-1.10.0::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-python/pytest-mock-1.10.0::gentoo'`. * The complete build log is located at '/var/tmp/portage/dev-python/pytest-mock-1.10.0/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-python/pytest-mock-1.10.0/temp/environment'. * Working directory: '/var/tmp/portage/dev-python/pytest-mock-1.10.0/work/pytest-mock-1.10.0' * S: '/var/tmp/portage/dev-python/pytest-mock-1.10.0/work/pytest-mock-1.10.0'