Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 627046 Details for
Bug 714856
dev-python/pytest-mock-1.11.2 fails almost all tests
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
build.log (ppc)
pytest-mock-1.11.2:20200329-213036.log (text/plain), 61.37 KB, created by
ernsteiswuerfel
on 2020-03-29 21:38:45 UTC
(
hide
)
Description:
build.log (ppc)
Filename:
MIME Type:
Creator:
ernsteiswuerfel
Created:
2020-03-29 21:38:45 UTC
Size:
61.37 KB
patch
obsolete
>[32;01m * [39;49;00mPackage: dev-python/pytest-mock-1.11.2 >[32;01m * [39;49;00mRepository: gentoo >[32;01m * [39;49;00mMaintainer: zmedico@gentoo.org python@gentoo.org >[32;01m * [39;49;00mUSE: abi_ppc_32 elibc_glibc kernel_linux ppc 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.11.2.tar.gz to /var/tmp/portage/dev-python/pytest-mock-1.11.2/work >>>> Source unpacked in /var/tmp/portage/dev-python/pytest-mock-1.11.2/work >>>> Preparing source in /var/tmp/portage/dev-python/pytest-mock-1.11.2/work/pytest-mock-1.11.2 ... >>>> Source prepared. >>>> Configuring source in /var/tmp/portage/dev-python/pytest-mock-1.11.2/work/pytest-mock-1.11.2 ... >>>> Source configured. >>>> Compiling source in /var/tmp/portage/dev-python/pytest-mock-1.11.2/work/pytest-mock-1.11.2 ... > [32;01m*[0m python2_7: running distutils-r1_run_phase distutils-r1_python_compile > [33;01m*[0m DISTUTILS_USE_SETUPTOOLS value is probably incorrect > [33;01m*[0m value: DISTUTILS_USE_SETUPTOOLS=bdepend (default?) > [33;01m*[0m expected: DISTUTILS_USE_SETUPTOOLS=rdepend >python2.7 setup.py build >running build >running build_py >creating /var/tmp/portage/dev-python/pytest-mock-1.11.2/work/pytest-mock-1.11.2-python2_7/lib/pytest_mock >copying src/pytest_mock/__init__.py -> /var/tmp/portage/dev-python/pytest-mock-1.11.2/work/pytest-mock-1.11.2-python2_7/lib/pytest_mock >copying src/pytest_mock/_version.py -> /var/tmp/portage/dev-python/pytest-mock-1.11.2/work/pytest-mock-1.11.2-python2_7/lib/pytest_mock >copying src/pytest_mock/plugin.py -> /var/tmp/portage/dev-python/pytest-mock-1.11.2/work/pytest-mock-1.11.2-python2_7/lib/pytest_mock >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 -j 26 >running build >running build_py >creating /var/tmp/portage/dev-python/pytest-mock-1.11.2/work/pytest-mock-1.11.2-python3_6/lib/pytest_mock >copying src/pytest_mock/__init__.py -> /var/tmp/portage/dev-python/pytest-mock-1.11.2/work/pytest-mock-1.11.2-python3_6/lib/pytest_mock >copying src/pytest_mock/_version.py -> /var/tmp/portage/dev-python/pytest-mock-1.11.2/work/pytest-mock-1.11.2-python3_6/lib/pytest_mock >copying src/pytest_mock/plugin.py -> /var/tmp/portage/dev-python/pytest-mock-1.11.2/work/pytest-mock-1.11.2-python3_6/lib/pytest_mock >warning: build_py: byte-compiling is disabled, skipping. > >>>> Source compiled. >>>> Test phase: dev-python/pytest-mock-1.11.2 > [32;01m*[0m python2_7: running distutils-r1_run_phase python_test >========================================= test session starts ========================================== >platform linux2 -- Python 2.7.17, pytest-4.5.0, py-1.8.0, pluggy-0.11.0 -- /usr/bin/python2.7 >cachedir: .pytest_cache >rootdir: /var/tmp/portage/dev-python/pytest-mock-1.11.2/work/pytest-mock-1.11.2, inifile: tox.ini >collecting ... collected 44 items > >tests/test_pytest_mock.py::test_mock_patches[mock_using_patch_object] ERROR [ 2%] >tests/test_pytest_mock.py::test_mock_patches[mock_using_patch] ERROR [ 4%] >tests/test_pytest_mock.py::test_mock_patches[mock_using_patch_multiple] ERROR [ 6%] >tests/test_pytest_mock.py::test_mock_patch_dict ERROR [ 9%] >tests/test_pytest_mock.py::test_mock_patch_dict_resetall ERROR [ 11%] >tests/test_pytest_mock.py::test_deprecated_mock FAILED [ 13%] >tests/test_pytest_mock.py::test_mocker_aliases[ANY] FAILED [ 15%] >tests/test_pytest_mock.py::test_mocker_aliases[call] FAILED [ 18%] >tests/test_pytest_mock.py::test_mocker_aliases[create_autospec] FAILED [ 20%] >tests/test_pytest_mock.py::test_mocker_aliases[MagicMock] FAILED [ 22%] >tests/test_pytest_mock.py::test_mocker_aliases[Mock] FAILED [ 25%] >tests/test_pytest_mock.py::test_mocker_aliases[mock_open] FAILED [ 27%] >tests/test_pytest_mock.py::test_mocker_aliases[NonCallableMock] FAILED [ 29%] >tests/test_pytest_mock.py::test_mocker_aliases[PropertyMock] FAILED [ 31%] >tests/test_pytest_mock.py::test_mocker_aliases[sentinel] FAILED [ 34%] >tests/test_pytest_mock.py::test_mocker_resetall ERROR [ 36%] >tests/test_pytest_mock.py::TestMockerStub::test_call ERROR [ 38%] >tests/test_pytest_mock.py::TestMockerStub::test_repr_with_no_name ERROR [ 40%] >tests/test_pytest_mock.py::TestMockerStub::test_repr_with_name ERROR [ 43%] >tests/test_pytest_mock.py::test_instance_method_spy ERROR [ 45%] >tests/test_pytest_mock.py::test_instance_method_by_class_spy ERROR [ 47%] >tests/test_pytest_mock.py::test_instance_method_by_subclass_spy ERROR [ 50%] >tests/test_pytest_mock.py::test_class_method_spy ERROR [ 52%] >tests/test_pytest_mock.py::test_class_method_subclass_spy XFAIL [ 54%] >tests/test_pytest_mock.py::test_class_method_with_metaclass_spy ERROR [ 56%] >tests/test_pytest_mock.py::test_static_method_spy ERROR [ 59%] >tests/test_pytest_mock.py::test_static_method_subclass_spy XFAIL [ 61%] >tests/test_pytest_mock.py::test_callable_like_spy ERROR [ 63%] >tests/test_pytest_mock.py::test_assert_not_called_wrapper ERROR [ 65%] >tests/test_pytest_mock.py::test_assert_called_with_wrapper ERROR [ 68%] >tests/test_pytest_mock.py::test_assert_called_once_with_wrapper ERROR [ 70%] >tests/test_pytest_mock.py::test_assert_called_once_wrapper ERROR [ 72%] >tests/test_pytest_mock.py::test_assert_called_wrapper ERROR [ 75%] >tests/test_pytest_mock.py::test_assert_any_call_wrapper ERROR [ 77%] >tests/test_pytest_mock.py::test_assert_has_calls ERROR [ 79%] >tests/test_pytest_mock.py::test_monkeypatch_ini ERROR [ 81%] >tests/test_pytest_mock.py::test_parse_ini_boolean PASSED [ 84%] >tests/test_pytest_mock.py::test_patched_method_parameter_name ERROR [ 86%] >tests/test_pytest_mock.py::test_monkeypatch_native FAILED [ 88%] >tests/test_pytest_mock.py::test_monkeypatch_no_terminal PASSED [ 90%] >tests/test_pytest_mock.py::test_missing_introspection PASSED [ 93%] >tests/test_pytest_mock.py::test_assert_called_with_unicode_arguments ERROR [ 95%] >tests/test_pytest_mock.py::test_plain_stopall FAILED [ 97%] >tests/test_pytest_mock.py::test_abort_context_manager ERROR [100%] > >================================================ ERRORS ================================================ >_____________________ ERROR at setup of test_mock_patches[mock_using_patch_object] _____________________ >file /var/tmp/portage/dev-python/pytest-mock-1.11.2/work/pytest-mock-1.11.2/tests/test_pytest_mock.py, line 94 > @pytest.mark.parametrize( > "mock_fs", [mock_using_patch_object, mock_using_patch, mock_using_patch_multiple] > ) > def test_mock_patches(mock_fs, mocker, check_unix_fs_mocked): >E fixture 'mocker' not found >> available fixtures: LineMatcher, _config_for_test, _pytest, _sys_snapshot, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, check_unix_fs_mocked, doctest_namespace, linecomp, monkeypatch, needs_assert_rewrite, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, testdir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory >> use 'pytest --fixtures [testpath]' for help on them. > >/var/tmp/portage/dev-python/pytest-mock-1.11.2/work/pytest-mock-1.11.2/tests/test_pytest_mock.py:94 >________________________ ERROR at setup of test_mock_patches[mock_using_patch] _________________________ >file /var/tmp/portage/dev-python/pytest-mock-1.11.2/work/pytest-mock-1.11.2/tests/test_pytest_mock.py, line 94 > @pytest.mark.parametrize( > "mock_fs", [mock_using_patch_object, mock_using_patch, mock_using_patch_multiple] > ) > def test_mock_patches(mock_fs, mocker, check_unix_fs_mocked): >E fixture 'mocker' not found >> available fixtures: LineMatcher, _config_for_test, _pytest, _sys_snapshot, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, check_unix_fs_mocked, doctest_namespace, linecomp, monkeypatch, needs_assert_rewrite, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, testdir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory >> use 'pytest --fixtures [testpath]' for help on them. > >/var/tmp/portage/dev-python/pytest-mock-1.11.2/work/pytest-mock-1.11.2/tests/test_pytest_mock.py:94 >____________________ ERROR at setup of test_mock_patches[mock_using_patch_multiple] ____________________ >file /var/tmp/portage/dev-python/pytest-mock-1.11.2/work/pytest-mock-1.11.2/tests/test_pytest_mock.py, line 94 > @pytest.mark.parametrize( > "mock_fs", [mock_using_patch_object, mock_using_patch, mock_using_patch_multiple] > ) > def test_mock_patches(mock_fs, mocker, check_unix_fs_mocked): >E fixture 'mocker' not found >> available fixtures: LineMatcher, _config_for_test, _pytest, _sys_snapshot, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, check_unix_fs_mocked, doctest_namespace, linecomp, monkeypatch, needs_assert_rewrite, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, testdir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory >> use 'pytest --fixtures [testpath]' for help on them. > >/var/tmp/portage/dev-python/pytest-mock-1.11.2/work/pytest-mock-1.11.2/tests/test_pytest_mock.py:94 >________________________________ ERROR at setup of test_mock_patch_dict ________________________________ >file /var/tmp/portage/dev-python/pytest-mock-1.11.2/work/pytest-mock-1.11.2/tests/test_pytest_mock.py, line 111 > def test_mock_patch_dict(mocker): >E fixture 'mocker' not found >> available fixtures: LineMatcher, _config_for_test, _pytest, _sys_snapshot, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, check_unix_fs_mocked, doctest_namespace, linecomp, monkeypatch, needs_assert_rewrite, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, testdir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory >> use 'pytest --fixtures [testpath]' for help on them. > >/var/tmp/portage/dev-python/pytest-mock-1.11.2/work/pytest-mock-1.11.2/tests/test_pytest_mock.py:111 >___________________________ ERROR at setup of test_mock_patch_dict_resetall ____________________________ >file /var/tmp/portage/dev-python/pytest-mock-1.11.2/work/pytest-mock-1.11.2/tests/test_pytest_mock.py, line 123 > def test_mock_patch_dict_resetall(mocker): >E fixture 'mocker' not found >> available fixtures: LineMatcher, _config_for_test, _pytest, _sys_snapshot, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, check_unix_fs_mocked, doctest_namespace, linecomp, monkeypatch, needs_assert_rewrite, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, testdir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory >> use 'pytest --fixtures [testpath]' for help on them. > >/var/tmp/portage/dev-python/pytest-mock-1.11.2/work/pytest-mock-1.11.2/tests/test_pytest_mock.py:123 >________________________________ ERROR at setup of test_mocker_resetall ________________________________ >file /var/tmp/portage/dev-python/pytest-mock-1.11.2/work/pytest-mock-1.11.2/tests/test_pytest_mock.py, line 180 > def test_mocker_resetall(mocker): >E fixture 'mocker' not found >> available fixtures: LineMatcher, _config_for_test, _pytest, _sys_snapshot, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, check_unix_fs_mocked, doctest_namespace, linecomp, monkeypatch, needs_assert_rewrite, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, testdir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory >> use 'pytest --fixtures [testpath]' for help on them. > >/var/tmp/portage/dev-python/pytest-mock-1.11.2/work/pytest-mock-1.11.2/tests/test_pytest_mock.py:180 >______________________________ ERROR at setup of TestMockerStub.test_call ______________________________ >file /var/tmp/portage/dev-python/pytest-mock-1.11.2/work/pytest-mock-1.11.2/tests/test_pytest_mock.py, line 196 > def test_call(self, mocker): >E fixture 'mocker' not found >> available fixtures: LineMatcher, _config_for_test, _pytest, _sys_snapshot, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, check_unix_fs_mocked, doctest_namespace, linecomp, monkeypatch, needs_assert_rewrite, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, testdir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory >> use 'pytest --fixtures [testpath]' for help on them. > >/var/tmp/portage/dev-python/pytest-mock-1.11.2/work/pytest-mock-1.11.2/tests/test_pytest_mock.py:196 >_______________________ ERROR at setup of TestMockerStub.test_repr_with_no_name ________________________ >file /var/tmp/portage/dev-python/pytest-mock-1.11.2/work/pytest-mock-1.11.2/tests/test_pytest_mock.py, line 201 > def test_repr_with_no_name(self, mocker): >E fixture 'mocker' not found >> available fixtures: LineMatcher, _config_for_test, _pytest, _sys_snapshot, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, check_unix_fs_mocked, doctest_namespace, linecomp, monkeypatch, needs_assert_rewrite, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, testdir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory >> use 'pytest --fixtures [testpath]' for help on them. > >/var/tmp/portage/dev-python/pytest-mock-1.11.2/work/pytest-mock-1.11.2/tests/test_pytest_mock.py:201 >_________________________ ERROR at setup of TestMockerStub.test_repr_with_name _________________________ >file /var/tmp/portage/dev-python/pytest-mock-1.11.2/work/pytest-mock-1.11.2/tests/test_pytest_mock.py, line 205 > def test_repr_with_name(self, mocker): >E fixture 'mocker' not found >> available fixtures: LineMatcher, _config_for_test, _pytest, _sys_snapshot, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, check_unix_fs_mocked, doctest_namespace, linecomp, monkeypatch, needs_assert_rewrite, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, testdir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory >> use 'pytest --fixtures [testpath]' for help on them. > >/var/tmp/portage/dev-python/pytest-mock-1.11.2/work/pytest-mock-1.11.2/tests/test_pytest_mock.py:205 >______________________________ ERROR at setup of test_instance_method_spy ______________________________ >file /var/tmp/portage/dev-python/pytest-mock-1.11.2/work/pytest-mock-1.11.2/tests/test_pytest_mock.py, line 230 > def test_instance_method_spy(mocker): >E fixture 'mocker' not found >> available fixtures: LineMatcher, _config_for_test, _pytest, _sys_snapshot, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, check_unix_fs_mocked, doctest_namespace, linecomp, monkeypatch, needs_assert_rewrite, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, testdir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory >> use 'pytest --fixtures [testpath]' for help on them. > >/var/tmp/portage/dev-python/pytest-mock-1.11.2/work/pytest-mock-1.11.2/tests/test_pytest_mock.py:230 >_________________________ ERROR at setup of test_instance_method_by_class_spy __________________________ >file /var/tmp/portage/dev-python/pytest-mock-1.11.2/work/pytest-mock-1.11.2/tests/test_pytest_mock.py, line 246 > @skip_pypy > def test_instance_method_by_class_spy(mocker): >E fixture 'mocker' not found >> available fixtures: LineMatcher, _config_for_test, _pytest, _sys_snapshot, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, check_unix_fs_mocked, doctest_namespace, linecomp, monkeypatch, needs_assert_rewrite, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, testdir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory >> use 'pytest --fixtures [testpath]' for help on them. > >/var/tmp/portage/dev-python/pytest-mock-1.11.2/work/pytest-mock-1.11.2/tests/test_pytest_mock.py:246 >________________________ ERROR at setup of test_instance_method_by_subclass_spy ________________________ >file /var/tmp/portage/dev-python/pytest-mock-1.11.2/work/pytest-mock-1.11.2/tests/test_pytest_mock.py, line 261 > @skip_pypy > def test_instance_method_by_subclass_spy(mocker): >E fixture 'mocker' not found >> available fixtures: LineMatcher, _config_for_test, _pytest, _sys_snapshot, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, check_unix_fs_mocked, doctest_namespace, linecomp, monkeypatch, needs_assert_rewrite, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, testdir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory >> use 'pytest --fixtures [testpath]' for help on them. > >/var/tmp/portage/dev-python/pytest-mock-1.11.2/work/pytest-mock-1.11.2/tests/test_pytest_mock.py:261 >_______________________________ ERROR at setup of test_class_method_spy ________________________________ >file /var/tmp/portage/dev-python/pytest-mock-1.11.2/work/pytest-mock-1.11.2/tests/test_pytest_mock.py, line 280 > @skip_pypy > def test_class_method_spy(mocker): >E fixture 'mocker' not found >> available fixtures: LineMatcher, _config_for_test, _pytest, _sys_snapshot, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, check_unix_fs_mocked, doctest_namespace, linecomp, monkeypatch, needs_assert_rewrite, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, testdir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory >> use 'pytest --fixtures [testpath]' for help on them. > >/var/tmp/portage/dev-python/pytest-mock-1.11.2/work/pytest-mock-1.11.2/tests/test_pytest_mock.py:280 >________________________ ERROR at setup of test_class_method_with_metaclass_spy ________________________ >file /var/tmp/portage/dev-python/pytest-mock-1.11.2/work/pytest-mock-1.11.2/tests/test_pytest_mock.py, line 314 > @skip_pypy > def test_class_method_with_metaclass_spy(mocker): >E fixture 'mocker' not found >> available fixtures: LineMatcher, _config_for_test, _pytest, _sys_snapshot, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, check_unix_fs_mocked, doctest_namespace, linecomp, monkeypatch, needs_assert_rewrite, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, testdir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory >> use 'pytest --fixtures [testpath]' for help on them. > >/var/tmp/portage/dev-python/pytest-mock-1.11.2/work/pytest-mock-1.11.2/tests/test_pytest_mock.py:314 >_______________________________ ERROR at setup of test_static_method_spy _______________________________ >file /var/tmp/portage/dev-python/pytest-mock-1.11.2/work/pytest-mock-1.11.2/tests/test_pytest_mock.py, line 335 > @skip_pypy > def test_static_method_spy(mocker): >E fixture 'mocker' not found >> available fixtures: LineMatcher, _config_for_test, _pytest, _sys_snapshot, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, check_unix_fs_mocked, doctest_namespace, linecomp, monkeypatch, needs_assert_rewrite, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, testdir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory >> use 'pytest --fixtures [testpath]' for help on them. > >/var/tmp/portage/dev-python/pytest-mock-1.11.2/work/pytest-mock-1.11.2/tests/test_pytest_mock.py:335 >_______________________________ ERROR at setup of test_callable_like_spy _______________________________ >file /var/tmp/portage/dev-python/pytest-mock-1.11.2/work/pytest-mock-1.11.2/tests/test_pytest_mock.py, line 369 > def test_callable_like_spy(testdir, mocker): >E fixture 'mocker' not found >> available fixtures: LineMatcher, _config_for_test, _pytest, _sys_snapshot, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, check_unix_fs_mocked, doctest_namespace, linecomp, monkeypatch, needs_assert_rewrite, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, testdir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory >> use 'pytest --fixtures [testpath]' for help on them. > >/var/tmp/portage/dev-python/pytest-mock-1.11.2/work/pytest-mock-1.11.2/tests/test_pytest_mock.py:369 >___________________________ ERROR at setup of test_assert_not_called_wrapper ___________________________ >file /var/tmp/portage/dev-python/pytest-mock-1.11.2/work/pytest-mock-1.11.2/tests/test_pytest_mock.py, line 424 > @pytest.mark.skipif( > sys.version_info[:2] == (3, 4), > reason="assert_not_called not available in Python 3.4", > ) > def test_assert_not_called_wrapper(mocker): >E fixture 'mocker' not found >> available fixtures: LineMatcher, _config_for_test, _pytest, _sys_snapshot, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, check_unix_fs_mocked, doctest_namespace, linecomp, monkeypatch, needs_assert_rewrite, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, testdir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory >> use 'pytest --fixtures [testpath]' for help on them. > >/var/tmp/portage/dev-python/pytest-mock-1.11.2/work/pytest-mock-1.11.2/tests/test_pytest_mock.py:424 >__________________________ ERROR at setup of test_assert_called_with_wrapper ___________________________ >file /var/tmp/portage/dev-python/pytest-mock-1.11.2/work/pytest-mock-1.11.2/tests/test_pytest_mock.py, line 436 > def test_assert_called_with_wrapper(mocker): >E fixture 'mocker' not found >> available fixtures: LineMatcher, _config_for_test, _pytest, _sys_snapshot, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, check_unix_fs_mocked, doctest_namespace, linecomp, monkeypatch, needs_assert_rewrite, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, testdir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory >> use 'pytest --fixtures [testpath]' for help on them. > >/var/tmp/portage/dev-python/pytest-mock-1.11.2/work/pytest-mock-1.11.2/tests/test_pytest_mock.py:436 >________________________ ERROR at setup of test_assert_called_once_with_wrapper ________________________ >file /var/tmp/portage/dev-python/pytest-mock-1.11.2/work/pytest-mock-1.11.2/tests/test_pytest_mock.py, line 444 > def test_assert_called_once_with_wrapper(mocker): >E fixture 'mocker' not found >> available fixtures: LineMatcher, _config_for_test, _pytest, _sys_snapshot, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, check_unix_fs_mocked, doctest_namespace, linecomp, monkeypatch, needs_assert_rewrite, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, testdir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory >> use 'pytest --fixtures [testpath]' for help on them. > >/var/tmp/portage/dev-python/pytest-mock-1.11.2/work/pytest-mock-1.11.2/tests/test_pytest_mock.py:444 >__________________________ ERROR at setup of test_assert_called_once_wrapper ___________________________ >file /var/tmp/portage/dev-python/pytest-mock-1.11.2/work/pytest-mock-1.11.2/tests/test_pytest_mock.py, line 453 > def test_assert_called_once_wrapper(mocker): >E fixture 'mocker' not found >> available fixtures: LineMatcher, _config_for_test, _pytest, _sys_snapshot, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, check_unix_fs_mocked, doctest_namespace, linecomp, monkeypatch, needs_assert_rewrite, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, testdir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory >> use 'pytest --fixtures [testpath]' for help on them. > >/var/tmp/portage/dev-python/pytest-mock-1.11.2/work/pytest-mock-1.11.2/tests/test_pytest_mock.py:453 >_____________________________ ERROR at setup of test_assert_called_wrapper _____________________________ >file /var/tmp/portage/dev-python/pytest-mock-1.11.2/work/pytest-mock-1.11.2/tests/test_pytest_mock.py, line 464 > def test_assert_called_wrapper(mocker): >E fixture 'mocker' not found >> available fixtures: LineMatcher, _config_for_test, _pytest, _sys_snapshot, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, check_unix_fs_mocked, doctest_namespace, linecomp, monkeypatch, needs_assert_rewrite, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, testdir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory >> use 'pytest --fixtures [testpath]' for help on them. > >/var/tmp/portage/dev-python/pytest-mock-1.11.2/work/pytest-mock-1.11.2/tests/test_pytest_mock.py:464 >____________________________ ERROR at setup of test_assert_any_call_wrapper ____________________________ >file /var/tmp/portage/dev-python/pytest-mock-1.11.2/work/pytest-mock-1.11.2/tests/test_pytest_mock.py, line 508 > def test_assert_any_call_wrapper(mocker): >E fixture 'mocker' not found >> available fixtures: LineMatcher, _config_for_test, _pytest, _sys_snapshot, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, check_unix_fs_mocked, doctest_namespace, linecomp, monkeypatch, needs_assert_rewrite, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, testdir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory >> use 'pytest --fixtures [testpath]' for help on them. > >/var/tmp/portage/dev-python/pytest-mock-1.11.2/work/pytest-mock-1.11.2/tests/test_pytest_mock.py:508 >_______________________________ ERROR at setup of test_assert_has_calls ________________________________ >file /var/tmp/portage/dev-python/pytest-mock-1.11.2/work/pytest-mock-1.11.2/tests/test_pytest_mock.py, line 517 > def test_assert_has_calls(mocker): >E fixture 'mocker' not found >> available fixtures: LineMatcher, _config_for_test, _pytest, _sys_snapshot, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, check_unix_fs_mocked, doctest_namespace, linecomp, monkeypatch, needs_assert_rewrite, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, testdir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory >> use 'pytest --fixtures [testpath]' for help on them. > >/var/tmp/portage/dev-python/pytest-mock-1.11.2/work/pytest-mock-1.11.2/tests/test_pytest_mock.py:517 >________________________________ ERROR at setup of test_monkeypatch_ini ________________________________ >file /var/tmp/portage/dev-python/pytest-mock-1.11.2/work/pytest-mock-1.11.2/tests/test_pytest_mock.py, line 525 > def test_monkeypatch_ini(mocker, testdir): >E fixture 'mocker' not found >> available fixtures: LineMatcher, _config_for_test, _pytest, _sys_snapshot, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, check_unix_fs_mocked, doctest_namespace, linecomp, monkeypatch, needs_assert_rewrite, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, testdir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory >> use 'pytest --fixtures [testpath]' for help on them. > >/var/tmp/portage/dev-python/pytest-mock-1.11.2/work/pytest-mock-1.11.2/tests/test_pytest_mock.py:525 >_________________________ ERROR at setup of test_patched_method_parameter_name _________________________ >file /var/tmp/portage/dev-python/pytest-mock-1.11.2/work/pytest-mock-1.11.2/tests/test_pytest_mock.py, line 557 > def test_patched_method_parameter_name(mocker): >E fixture 'mocker' not found >> available fixtures: LineMatcher, _config_for_test, _pytest, _sys_snapshot, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, check_unix_fs_mocked, doctest_namespace, linecomp, monkeypatch, needs_assert_rewrite, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, testdir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory >> use 'pytest --fixtures [testpath]' for help on them. > >/var/tmp/portage/dev-python/pytest-mock-1.11.2/work/pytest-mock-1.11.2/tests/test_pytest_mock.py:557 >_____________________ ERROR at setup of test_assert_called_with_unicode_arguments ______________________ >file /var/tmp/portage/dev-python/pytest-mock-1.11.2/work/pytest-mock-1.11.2/tests/test_pytest_mock.py, line 696 > def test_assert_called_with_unicode_arguments(mocker): >E fixture 'mocker' not found >> available fixtures: LineMatcher, _config_for_test, _pytest, _sys_snapshot, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, check_unix_fs_mocked, doctest_namespace, linecomp, monkeypatch, needs_assert_rewrite, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, testdir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory >> use 'pytest --fixtures [testpath]' for help on them. > >/var/tmp/portage/dev-python/pytest-mock-1.11.2/work/pytest-mock-1.11.2/tests/test_pytest_mock.py:696 >_____________________________ ERROR at setup of test_abort_context_manager _____________________________ >file /var/tmp/portage/dev-python/pytest-mock-1.11.2/work/pytest-mock-1.11.2/tests/test_pytest_mock.py, line 726 > def test_abort_context_manager(mocker): >E fixture 'mocker' not found >> available fixtures: LineMatcher, _config_for_test, _pytest, _sys_snapshot, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, check_unix_fs_mocked, doctest_namespace, linecomp, monkeypatch, needs_assert_rewrite, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, testdir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory >> use 'pytest --fixtures [testpath]' for help on them. > >/var/tmp/portage/dev-python/pytest-mock-1.11.2/work/pytest-mock-1.11.2/tests/test_pytest_mock.py:726 >=============================================== FAILURES =============================================== >_________________________________________ test_deprecated_mock _________________________________________ > >testdir = <Testdir local('/var/tmp/portage/dev-python/pytest-mock-1.11.2/temp/pytest-of-portage/pytest-0/test_deprecated_mock0')> > > def test_deprecated_mock(testdir): > """ > Use backward-compatibility-only mock fixture to ensure complete coverage. > """ > p1 = testdir.makepyfile( > """ > import os > > def test(mock, tmpdir): > mock.patch("os.listdir", return_value=["mocked"]) > assert os.listdir(str(tmpdir)) == ["mocked"] > mock.stopall() > assert os.listdir(str(tmpdir)) == [] > """ > ) > result = testdir.runpytest(str(p1)) > result.stdout.fnmatch_lines( >> ['*DeprecationWarning: "mock" fixture has been deprecated, use "mocker"*'] > ) >E Failed: nomatch: '*DeprecationWarning: "mock" fixture has been deprecated, use "mocker"*' >E and: u'========================================= test session starts ==========================================' >E and: u'platform linux2 -- Python 2.7.17, pytest-4.5.0, py-1.8.0, pluggy-0.11.0' >E and: u'rootdir: /var/tmp/portage/dev-python/pytest-mock-1.11.2/temp/pytest-of-portage/pytest-0/test_deprecated_mock0' >E and: u'collected 1 item' >E and: u'' >E and: u'test_deprecated_mock.py E [100%]' >E and: u'' >E and: u'================================================ ERRORS ================================================' >E and: u'________________________________________ ERROR at setup of test ________________________________________' >E and: u'file /var/tmp/portage/dev-python/pytest-mock-1.11.2/temp/pytest-of-portage/pytest-0/test_deprecated_mock0/test_deprecated_mock.py, line 3' >E and: u' def test(mock, tmpdir):' >E and: u"E fixture 'mock' not found" >E and: u'> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory' >E and: u"> use 'pytest --fixtures [testpath]' for help on them." >E and: u'' >E and: u'/var/tmp/portage/dev-python/pytest-mock-1.11.2/temp/pytest-of-portage/pytest-0/test_deprecated_mock0/test_deprecated_mock.py:3' >E and: u'======================================= 1 error in 0.03 seconds ========================================' >E and: u'' >E remains unmatched: '*DeprecationWarning: "mock" fixture has been deprecated, use "mocker"*' > >../../../../work/pytest-mock-1.11.2/tests/test_pytest_mock.py:152: Failed >----------------------------------------- Captured stdout call ----------------------------------------- >========================================= test session starts ========================================== >platform linux2 -- Python 2.7.17, pytest-4.5.0, py-1.8.0, pluggy-0.11.0 >rootdir: /var/tmp/portage/dev-python/pytest-mock-1.11.2/temp/pytest-of-portage/pytest-0/test_deprecated_mock0 >collected 1 item > >test_deprecated_mock.py E [100%] > >================================================ ERRORS ================================================ >________________________________________ ERROR at setup of test ________________________________________ >file /var/tmp/portage/dev-python/pytest-mock-1.11.2/temp/pytest-of-portage/pytest-0/test_deprecated_mock0/test_deprecated_mock.py, line 3 > def test(mock, tmpdir): >E fixture 'mock' not found >> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory >> use 'pytest --fixtures [testpath]' for help on them. > >/var/tmp/portage/dev-python/pytest-mock-1.11.2/temp/pytest-of-portage/pytest-0/test_deprecated_mock0/test_deprecated_mock.py:3 >======================================= 1 error in 0.03 seconds ======================================== >_______________________________________ test_mocker_aliases[ANY] _______________________________________ > >name = 'ANY', pytestconfig = <_pytest.config.Config object at 0xf688ee90> > > @pytest.mark.parametrize( > "name", > [ > "ANY", > "call", > "create_autospec", > "MagicMock", > "Mock", > "mock_open", > "NonCallableMock", > "PropertyMock", > "sentinel", > ], > ) > def test_mocker_aliases(name, pytestconfig): > from pytest_mock import _get_mock_module, MockFixture > >> mock_module = _get_mock_module(pytestconfig) > >tests/test_pytest_mock.py:174: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >../pytest-mock-1.11.2-python2_7/lib/pytest_mock/plugin.py:28: in _get_mock_module > config.getini("mock_use_standalone_module") >/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:934: in getini > self._inicache[name] = val = self._getini(name) >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <_pytest.config.Config object at 0xf688ee90>, name = 'mock_use_standalone_module' > > def _getini(self, name): > try: > description, type, default = self._parser._inidict[name] > except KeyError: >> raise ValueError("unknown configuration value: %r" % (name,)) >E ValueError: unknown configuration value: u'mock_use_standalone_module' > >/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:941: ValueError >______________________________________ test_mocker_aliases[call] _______________________________________ > >name = 'call', pytestconfig = <_pytest.config.Config object at 0xf688ee90> > > @pytest.mark.parametrize( > "name", > [ > "ANY", > "call", > "create_autospec", > "MagicMock", > "Mock", > "mock_open", > "NonCallableMock", > "PropertyMock", > "sentinel", > ], > ) > def test_mocker_aliases(name, pytestconfig): > from pytest_mock import _get_mock_module, MockFixture > >> mock_module = _get_mock_module(pytestconfig) > >tests/test_pytest_mock.py:174: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >../pytest-mock-1.11.2-python2_7/lib/pytest_mock/plugin.py:28: in _get_mock_module > config.getini("mock_use_standalone_module") >/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:934: in getini > self._inicache[name] = val = self._getini(name) >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <_pytest.config.Config object at 0xf688ee90>, name = 'mock_use_standalone_module' > > def _getini(self, name): > try: > description, type, default = self._parser._inidict[name] > except KeyError: >> raise ValueError("unknown configuration value: %r" % (name,)) >E ValueError: unknown configuration value: u'mock_use_standalone_module' > >/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:941: ValueError >_________________________________ test_mocker_aliases[create_autospec] _________________________________ > >name = 'create_autospec', pytestconfig = <_pytest.config.Config object at 0xf688ee90> > > @pytest.mark.parametrize( > "name", > [ > "ANY", > "call", > "create_autospec", > "MagicMock", > "Mock", > "mock_open", > "NonCallableMock", > "PropertyMock", > "sentinel", > ], > ) > def test_mocker_aliases(name, pytestconfig): > from pytest_mock import _get_mock_module, MockFixture > >> mock_module = _get_mock_module(pytestconfig) > >tests/test_pytest_mock.py:174: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >../pytest-mock-1.11.2-python2_7/lib/pytest_mock/plugin.py:28: in _get_mock_module > config.getini("mock_use_standalone_module") >/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:934: in getini > self._inicache[name] = val = self._getini(name) >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <_pytest.config.Config object at 0xf688ee90>, name = 'mock_use_standalone_module' > > def _getini(self, name): > try: > description, type, default = self._parser._inidict[name] > except KeyError: >> raise ValueError("unknown configuration value: %r" % (name,)) >E ValueError: unknown configuration value: u'mock_use_standalone_module' > >/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:941: ValueError >____________________________________ test_mocker_aliases[MagicMock] ____________________________________ > >name = 'MagicMock', pytestconfig = <_pytest.config.Config object at 0xf688ee90> > > @pytest.mark.parametrize( > "name", > [ > "ANY", > "call", > "create_autospec", > "MagicMock", > "Mock", > "mock_open", > "NonCallableMock", > "PropertyMock", > "sentinel", > ], > ) > def test_mocker_aliases(name, pytestconfig): > from pytest_mock import _get_mock_module, MockFixture > >> mock_module = _get_mock_module(pytestconfig) > >tests/test_pytest_mock.py:174: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >../pytest-mock-1.11.2-python2_7/lib/pytest_mock/plugin.py:28: in _get_mock_module > config.getini("mock_use_standalone_module") >/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:934: in getini > self._inicache[name] = val = self._getini(name) >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <_pytest.config.Config object at 0xf688ee90>, name = 'mock_use_standalone_module' > > def _getini(self, name): > try: > description, type, default = self._parser._inidict[name] > except KeyError: >> raise ValueError("unknown configuration value: %r" % (name,)) >E ValueError: unknown configuration value: u'mock_use_standalone_module' > >/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:941: ValueError >______________________________________ test_mocker_aliases[Mock] _______________________________________ > >name = 'Mock', pytestconfig = <_pytest.config.Config object at 0xf688ee90> > > @pytest.mark.parametrize( > "name", > [ > "ANY", > "call", > "create_autospec", > "MagicMock", > "Mock", > "mock_open", > "NonCallableMock", > "PropertyMock", > "sentinel", > ], > ) > def test_mocker_aliases(name, pytestconfig): > from pytest_mock import _get_mock_module, MockFixture > >> mock_module = _get_mock_module(pytestconfig) > >tests/test_pytest_mock.py:174: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >../pytest-mock-1.11.2-python2_7/lib/pytest_mock/plugin.py:28: in _get_mock_module > config.getini("mock_use_standalone_module") >/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:934: in getini > self._inicache[name] = val = self._getini(name) >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <_pytest.config.Config object at 0xf688ee90>, name = 'mock_use_standalone_module' > > def _getini(self, name): > try: > description, type, default = self._parser._inidict[name] > except KeyError: >> raise ValueError("unknown configuration value: %r" % (name,)) >E ValueError: unknown configuration value: u'mock_use_standalone_module' > >/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:941: ValueError >____________________________________ test_mocker_aliases[mock_open] ____________________________________ > >name = 'mock_open', pytestconfig = <_pytest.config.Config object at 0xf688ee90> > > @pytest.mark.parametrize( > "name", > [ > "ANY", > "call", > "create_autospec", > "MagicMock", > "Mock", > "mock_open", > "NonCallableMock", > "PropertyMock", > "sentinel", > ], > ) > def test_mocker_aliases(name, pytestconfig): > from pytest_mock import _get_mock_module, MockFixture > >> mock_module = _get_mock_module(pytestconfig) > >tests/test_pytest_mock.py:174: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >../pytest-mock-1.11.2-python2_7/lib/pytest_mock/plugin.py:28: in _get_mock_module > config.getini("mock_use_standalone_module") >/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:934: in getini > self._inicache[name] = val = self._getini(name) >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <_pytest.config.Config object at 0xf688ee90>, name = 'mock_use_standalone_module' > > def _getini(self, name): > try: > description, type, default = self._parser._inidict[name] > except KeyError: >> raise ValueError("unknown configuration value: %r" % (name,)) >E ValueError: unknown configuration value: u'mock_use_standalone_module' > >/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:941: ValueError >_________________________________ test_mocker_aliases[NonCallableMock] _________________________________ > >name = 'NonCallableMock', pytestconfig = <_pytest.config.Config object at 0xf688ee90> > > @pytest.mark.parametrize( > "name", > [ > "ANY", > "call", > "create_autospec", > "MagicMock", > "Mock", > "mock_open", > "NonCallableMock", > "PropertyMock", > "sentinel", > ], > ) > def test_mocker_aliases(name, pytestconfig): > from pytest_mock import _get_mock_module, MockFixture > >> mock_module = _get_mock_module(pytestconfig) > >tests/test_pytest_mock.py:174: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >../pytest-mock-1.11.2-python2_7/lib/pytest_mock/plugin.py:28: in _get_mock_module > config.getini("mock_use_standalone_module") >/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:934: in getini > self._inicache[name] = val = self._getini(name) >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <_pytest.config.Config object at 0xf688ee90>, name = 'mock_use_standalone_module' > > def _getini(self, name): > try: > description, type, default = self._parser._inidict[name] > except KeyError: >> raise ValueError("unknown configuration value: %r" % (name,)) >E ValueError: unknown configuration value: u'mock_use_standalone_module' > >/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:941: ValueError >__________________________________ test_mocker_aliases[PropertyMock] ___________________________________ > >name = 'PropertyMock', pytestconfig = <_pytest.config.Config object at 0xf688ee90> > > @pytest.mark.parametrize( > "name", > [ > "ANY", > "call", > "create_autospec", > "MagicMock", > "Mock", > "mock_open", > "NonCallableMock", > "PropertyMock", > "sentinel", > ], > ) > def test_mocker_aliases(name, pytestconfig): > from pytest_mock import _get_mock_module, MockFixture > >> mock_module = _get_mock_module(pytestconfig) > >tests/test_pytest_mock.py:174: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >../pytest-mock-1.11.2-python2_7/lib/pytest_mock/plugin.py:28: in _get_mock_module > config.getini("mock_use_standalone_module") >/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:934: in getini > self._inicache[name] = val = self._getini(name) >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <_pytest.config.Config object at 0xf688ee90>, name = 'mock_use_standalone_module' > > def _getini(self, name): > try: > description, type, default = self._parser._inidict[name] > except KeyError: >> raise ValueError("unknown configuration value: %r" % (name,)) >E ValueError: unknown configuration value: u'mock_use_standalone_module' > >/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:941: ValueError >____________________________________ test_mocker_aliases[sentinel] _____________________________________ > >name = 'sentinel', pytestconfig = <_pytest.config.Config object at 0xf688ee90> > > @pytest.mark.parametrize( > "name", > [ > "ANY", > "call", > "create_autospec", > "MagicMock", > "Mock", > "mock_open", > "NonCallableMock", > "PropertyMock", > "sentinel", > ], > ) > def test_mocker_aliases(name, pytestconfig): > from pytest_mock import _get_mock_module, MockFixture > >> mock_module = _get_mock_module(pytestconfig) > >tests/test_pytest_mock.py:174: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >../pytest-mock-1.11.2-python2_7/lib/pytest_mock/plugin.py:28: in _get_mock_module > config.getini("mock_use_standalone_module") >/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:934: in getini > self._inicache[name] = val = self._getini(name) >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <_pytest.config.Config object at 0xf688ee90>, name = 'mock_use_standalone_module' > > def _getini(self, name): > try: > description, type, default = self._parser._inidict[name] > except KeyError: >> raise ValueError("unknown configuration value: %r" % (name,)) >E ValueError: unknown configuration value: u'mock_use_standalone_module' > >/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:941: ValueError >_______________________________________ test_monkeypatch_native ________________________________________ > >testdir = <Testdir local('/var/tmp/portage/dev-python/pytest-mock-1.11.2/temp/pytest-of-portage/pytest-0/test_monkeypatch_native0')> > > def test_monkeypatch_native(testdir): > """Automatically disable monkeypatching when --tb=native. > """ > testdir.makepyfile( > """ > def test_foo(mocker): > stub = mocker.stub() > stub(1, greet='hello') > stub.assert_called_once_with(1, greet='hey') > """ > ) > result = runpytest_subprocess(testdir, "--tb=native") > assert result.ret == 1 > assert "During handling of the above exception" not in result.stdout.str() > assert "Differing items:" not in result.stdout.str() > traceback_lines = [ > x > for x in result.stdout.str().splitlines() > if "Traceback (most recent call last)" in x > ] >> assert ( > len(traceback_lines) == 1 > ) # make sure there are no duplicated tracebacks (#44) >E assert 0 == 1 >E -0 >E +1 > >../../../../work/pytest-mock-1.11.2/tests/test_pytest_mock.py:592: AssertionError >----------------------------------------- Captured stdout call ----------------------------------------- >running: /usr/bin/python2.7 -mpytest --basetemp=/var/tmp/portage/dev-python/pytest-mock-1.11.2/temp/pytest-of-portage/pytest-0/test_monkeypatch_native0/runpytest-0 --tb=native > in: /var/tmp/portage/dev-python/pytest-mock-1.11.2/temp/pytest-of-portage/pytest-0/test_monkeypatch_native0 >========================================= test session starts ========================================== >platform linux2 -- Python 2.7.17, pytest-4.5.0, py-1.8.0, pluggy-0.11.0 >rootdir: /var/tmp/portage/dev-python/pytest-mock-1.11.2/temp/pytest-of-portage/pytest-0/test_monkeypatch_native0 >collected 1 item > >test_monkeypatch_native.py E [100%] > >================================================ ERRORS ================================================ >______________________________________ ERROR at setup of test_foo ______________________________________ >file /var/tmp/portage/dev-python/pytest-mock-1.11.2/temp/pytest-of-portage/pytest-0/test_monkeypatch_native0/test_monkeypatch_native.py, line 1 > def test_foo(mocker): >E fixture 'mocker' not found >> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory >> use 'pytest --fixtures [testpath]' for help on them. > >/var/tmp/portage/dev-python/pytest-mock-1.11.2/temp/pytest-of-portage/pytest-0/test_monkeypatch_native0/test_monkeypatch_native.py:1 >======================================= 1 error in 0.04 seconds ======================================== >__________________________________________ test_plain_stopall __________________________________________ > >testdir = <Testdir local('/var/tmp/portage/dev-python/pytest-mock-1.11.2/temp/pytest-of-portage/pytest-0/test_plain_stopall0')> > > def test_plain_stopall(testdir): > """patch.stopall() in a test should not cause an error during unconfigure (#137)""" > testdir.makepyfile( > """ > import random > > def get_random_number(): > return random.randint(0, 100) > > def test_get_random_number(mocker): > patcher = mocker.mock_module.patch("random.randint", lambda x, y: 5) > patcher.start() > assert get_random_number() == 5 > mocker.mock_module.patch.stopall() > """ > ) > result = testdir.runpytest_subprocess() >> result.stdout.fnmatch_lines("* 1 passed in *") >E Failed: nomatch: '* 1 passed in *' >E and: u'========================================= test session starts ==========================================' >E and: u'platform linux2 -- Python 2.7.17, pytest-4.5.0, py-1.8.0, pluggy-0.11.0' >E and: u'rootdir: /var/tmp/portage/dev-python/pytest-mock-1.11.2/temp/pytest-of-portage/pytest-0/test_plain_stopall0' >E and: u'collected 1 item' >E and: u'' >E and: u'test_plain_stopall.py E [100%]' >E and: u'' >E and: u'================================================ ERRORS ================================================' >E and: u'_______________________________ ERROR at setup of test_get_random_number _______________________________' >E and: u'file /var/tmp/portage/dev-python/pytest-mock-1.11.2/temp/pytest-of-portage/pytest-0/test_plain_stopall0/test_plain_stopall.py, line 6' >E and: u' def test_get_random_number(mocker):' >E and: u"E fixture 'mocker' not found" >E and: u'> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory' >E and: u"> use 'pytest --fixtures [testpath]' for help on them." >E and: u'' >E and: u'/var/tmp/portage/dev-python/pytest-mock-1.11.2/temp/pytest-of-portage/pytest-0/test_plain_stopall0/test_plain_stopall.py:6' >E and: u'======================================= 1 error in 0.04 seconds ========================================' >E remains unmatched: '* 1 passed in *' > >../../../../work/pytest-mock-1.11.2/tests/test_pytest_mock.py:722: Failed >----------------------------------------- Captured stdout call ----------------------------------------- >running: /usr/bin/python2.7 -mpytest --basetemp=/var/tmp/portage/dev-python/pytest-mock-1.11.2/temp/pytest-of-portage/pytest-0/test_plain_stopall0/runpytest-0 > in: /var/tmp/portage/dev-python/pytest-mock-1.11.2/temp/pytest-of-portage/pytest-0/test_plain_stopall0 >========================================= test session starts ========================================== >platform linux2 -- Python 2.7.17, pytest-4.5.0, py-1.8.0, pluggy-0.11.0 >rootdir: /var/tmp/portage/dev-python/pytest-mock-1.11.2/temp/pytest-of-portage/pytest-0/test_plain_stopall0 >collected 1 item > >test_plain_stopall.py E [100%] > >================================================ ERRORS ================================================ >_______________________________ ERROR at setup of test_get_random_number _______________________________ >file /var/tmp/portage/dev-python/pytest-mock-1.11.2/temp/pytest-of-portage/pytest-0/test_plain_stopall0/test_plain_stopall.py, line 6 > def test_get_random_number(mocker): >E fixture 'mocker' not found >> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory >> use 'pytest --fixtures [testpath]' for help on them. > >/var/tmp/portage/dev-python/pytest-mock-1.11.2/temp/pytest-of-portage/pytest-0/test_plain_stopall0/test_plain_stopall.py:6 >======================================= 1 error in 0.04 seconds ======================================== >======================================= short test summary info ======================================== >XFAIL tests/test_pytest_mock.py::test_class_method_subclass_spy > does not work on Python 2 >XFAIL tests/test_pytest_mock.py::test_static_method_subclass_spy > does not work on Python 2 >ERROR tests/test_pytest_mock.py::test_mock_patches[mock_using_patch_object] >ERROR tests/test_pytest_mock.py::test_mock_patches[mock_using_patch] >ERROR tests/test_pytest_mock.py::test_mock_patches[mock_using_patch_multiple] >ERROR tests/test_pytest_mock.py::test_mock_patch_dict >ERROR tests/test_pytest_mock.py::test_mock_patch_dict_resetall >ERROR tests/test_pytest_mock.py::test_mocker_resetall >ERROR tests/test_pytest_mock.py::TestMockerStub::test_call >ERROR tests/test_pytest_mock.py::TestMockerStub::test_repr_with_no_name >ERROR tests/test_pytest_mock.py::TestMockerStub::test_repr_with_name >ERROR tests/test_pytest_mock.py::test_instance_method_spy >ERROR tests/test_pytest_mock.py::test_instance_method_by_class_spy >ERROR tests/test_pytest_mock.py::test_instance_method_by_subclass_spy >ERROR tests/test_pytest_mock.py::test_class_method_spy >ERROR tests/test_pytest_mock.py::test_class_method_with_metaclass_spy >ERROR tests/test_pytest_mock.py::test_static_method_spy >ERROR tests/test_pytest_mock.py::test_callable_like_spy >ERROR tests/test_pytest_mock.py::test_assert_not_called_wrapper >ERROR tests/test_pytest_mock.py::test_assert_called_with_wrapper >ERROR tests/test_pytest_mock.py::test_assert_called_once_with_wrapper >ERROR tests/test_pytest_mock.py::test_assert_called_once_wrapper >ERROR tests/test_pytest_mock.py::test_assert_called_wrapper >ERROR tests/test_pytest_mock.py::test_assert_any_call_wrapper >ERROR tests/test_pytest_mock.py::test_assert_has_calls >ERROR tests/test_pytest_mock.py::test_monkeypatch_ini >ERROR tests/test_pytest_mock.py::test_patched_method_parameter_name >ERROR tests/test_pytest_mock.py::test_assert_called_with_unicode_arguments >ERROR tests/test_pytest_mock.py::test_abort_context_manager >FAILED tests/test_pytest_mock.py::test_deprecated_mock - Failed: nomatch: '*DeprecationWarning: "mock... >FAILED tests/test_pytest_mock.py::test_mocker_aliases[ANY] - ValueError: unknown configuration value:... >FAILED tests/test_pytest_mock.py::test_mocker_aliases[call] - ValueError: unknown configuration value... >FAILED tests/test_pytest_mock.py::test_mocker_aliases[create_autospec] - ValueError: unknown configur... >FAILED tests/test_pytest_mock.py::test_mocker_aliases[MagicMock] - ValueError: unknown configuration ... >FAILED tests/test_pytest_mock.py::test_mocker_aliases[Mock] - ValueError: unknown configuration value... >FAILED tests/test_pytest_mock.py::test_mocker_aliases[mock_open] - ValueError: unknown configuration ... >FAILED tests/test_pytest_mock.py::test_mocker_aliases[NonCallableMock] - ValueError: unknown configur... >FAILED tests/test_pytest_mock.py::test_mocker_aliases[PropertyMock] - ValueError: unknown configurati... >FAILED tests/test_pytest_mock.py::test_mocker_aliases[sentinel] - ValueError: unknown configuration v... >FAILED tests/test_pytest_mock.py::test_monkeypatch_native - assert 0 == 1 >FAILED tests/test_pytest_mock.py::test_plain_stopall - Failed: nomatch: '* 1 passed in *' >======================= 12 failed, 3 passed, 2 xfailed, 27 error in 4.42 seconds ======================= > [31;01m*[0m ERROR: dev-python/pytest-mock-1.11.2::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 2896: Called distutils-r1_src_test > [31;01m*[0m environment, line 1237: Called _distutils-r1_run_foreach_impl 'python_test' > [31;01m*[0m environment, line 437: Called python_foreach_impl 'distutils-r1_run_phase' 'python_test' > [31;01m*[0m environment, line 2506: Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' > [31;01m*[0m environment, line 2019: Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' > [31;01m*[0m environment, line 2017: Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'python_test' > [31;01m*[0m environment, line 825: Called distutils-r1_run_phase 'python_test' > [31;01m*[0m environment, line 1174: Called python_test > [31;01m*[0m environment, line 2852: Called die > [31;01m*[0m The specific snippet of code: > [31;01m*[0m py.test -vv tests/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.11.2::gentoo'`, > [31;01m*[0m the complete build log and the output of `emerge -pqv '=dev-python/pytest-mock-1.11.2::gentoo'`. > [31;01m*[0m The complete build log is located at '/var/log/portage/build/dev-python/pytest-mock-1.11.2:20200329-213036.log'. > [31;01m*[0m For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-python/pytest-mock-1.11.2/temp/build.log'. > [31;01m*[0m The ebuild environment file is located at '/var/tmp/portage/dev-python/pytest-mock-1.11.2/temp/environment'. > [31;01m*[0m Working directory: '/var/tmp/portage/dev-python/pytest-mock-1.11.2/work/pytest-mock-1.11.2' > [31;01m*[0m S: '/var/tmp/portage/dev-python/pytest-mock-1.11.2/work/pytest-mock-1.11.2'
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 714856
:
626116
| 627046 |
628128