* Package: dev-python/pytest-mock-3.3.1  * Repository: gentoo  * Maintainer: zmedico@gentoo.org python@gentoo.org  * USE: abi_ppc_64 elibc_glibc kernel_linux ppc64 python_targets_python3_7 python_targets_python3_8 test userland_GNU  * FEATURES: network-sandbox preserve-libs sandbox test userpriv usersandbox >>> Unpacking source... >>> Unpacking pytest-mock-3.3.1.tar.gz to /var/tmp/portage/dev-python/pytest-mock-3.3.1/work >>> Source unpacked in /var/tmp/portage/dev-python/pytest-mock-3.3.1/work >>> Preparing source in /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1 ... >>> Source prepared. >>> Configuring source in /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1 ... >>> Source configured. >>> Compiling source in /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1 ... * python3_7: running distutils-r1_run_phase distutils-r1_python_compile python3.7 setup.py build -j 16 running build running build_py creating /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1-python3_7/lib/pytest_mock copying src/pytest_mock/plugin.py -> /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1-python3_7/lib/pytest_mock copying src/pytest_mock/__init__.py -> /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1-python3_7/lib/pytest_mock copying src/pytest_mock/_version.py -> /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1-python3_7/lib/pytest_mock copying src/pytest_mock/py.typed -> /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1-python3_7/lib/pytest_mock warning: build_py: byte-compiling is disabled, skipping. * python3_8: running distutils-r1_run_phase distutils-r1_python_compile python3.8 setup.py build -j 16 running build running build_py creating /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1-python3_8/lib/pytest_mock copying src/pytest_mock/plugin.py -> /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1-python3_8/lib/pytest_mock copying src/pytest_mock/__init__.py -> /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1-python3_8/lib/pytest_mock copying src/pytest_mock/_version.py -> /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1-python3_8/lib/pytest_mock copying src/pytest_mock/py.typed -> /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1-python3_8/lib/pytest_mock warning: build_py: byte-compiling is disabled, skipping. >>> Source compiled. >>> Test phase: dev-python/pytest-mock-3.3.1 * python3_7: running distutils-r1_run_phase python_test python3.7 setup.py install --home=/var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1-python3_7/test --install-lib=/var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1-python3_7/test/lib --install-scripts=/var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1-python3_7/test/scripts running install running bdist_egg running egg_info writing src/pytest_mock.egg-info/PKG-INFO writing dependency_links to src/pytest_mock.egg-info/dependency_links.txt writing entry points to src/pytest_mock.egg-info/entry_points.txt writing requirements to src/pytest_mock.egg-info/requires.txt writing top-level names to src/pytest_mock.egg-info/top_level.txt reading manifest file 'src/pytest_mock.egg-info/SOURCES.txt' writing manifest file 'src/pytest_mock.egg-info/SOURCES.txt' installing library code to /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1-python3_7/bdist.linux-ppc64/egg running install_lib running build_py copying src/pytest_mock/_version.py -> /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1-python3_7/lib/pytest_mock warning: build_py: byte-compiling is disabled, skipping. creating /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1-python3_7/bdist.linux-ppc64 creating /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1-python3_7/bdist.linux-ppc64/egg creating /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1-python3_7/bdist.linux-ppc64/egg/pytest_mock copying /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1-python3_7/lib/pytest_mock/plugin.py -> /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1-python3_7/bdist.linux-ppc64/egg/pytest_mock copying /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1-python3_7/lib/pytest_mock/py.typed -> /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1-python3_7/bdist.linux-ppc64/egg/pytest_mock copying /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1-python3_7/lib/pytest_mock/__init__.py -> /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1-python3_7/bdist.linux-ppc64/egg/pytest_mock copying /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1-python3_7/lib/pytest_mock/_version.py -> /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1-python3_7/bdist.linux-ppc64/egg/pytest_mock warning: install_lib: byte-compiling is disabled, skipping. creating /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1-python3_7/bdist.linux-ppc64/egg/EGG-INFO copying src/pytest_mock.egg-info/PKG-INFO -> /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1-python3_7/bdist.linux-ppc64/egg/EGG-INFO copying src/pytest_mock.egg-info/SOURCES.txt -> /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1-python3_7/bdist.linux-ppc64/egg/EGG-INFO copying src/pytest_mock.egg-info/dependency_links.txt -> /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1-python3_7/bdist.linux-ppc64/egg/EGG-INFO copying src/pytest_mock.egg-info/entry_points.txt -> /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1-python3_7/bdist.linux-ppc64/egg/EGG-INFO copying src/pytest_mock.egg-info/requires.txt -> /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1-python3_7/bdist.linux-ppc64/egg/EGG-INFO copying src/pytest_mock.egg-info/top_level.txt -> /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1-python3_7/bdist.linux-ppc64/egg/EGG-INFO zip_safe flag not set; analyzing archive contents... creating /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1-python3_7/dist creating '/var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1-python3_7/dist/pytest_mock-3.3.1-py3.7.egg' and adding '/var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1-python3_7/bdist.linux-ppc64/egg' to it removing '/var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1-python3_7/bdist.linux-ppc64/egg' (and everything under it) Processing pytest_mock-3.3.1-py3.7.egg Copying pytest_mock-3.3.1-py3.7.egg to /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1-python3_7/test/lib Adding pytest-mock 3.3.1 to easy-install.pth file Installed /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1-python3_7/test/lib/pytest_mock-3.3.1-py3.7.egg Processing dependencies for pytest-mock==3.3.1 Searching for pytest==6.0.2 Best match: pytest 6.0.2 Adding pytest 6.0.2 to easy-install.pth file Installing py.test script to /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1-python3_7/test/scripts Installing pytest script to /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1-python3_7/test/scripts Using /usr/lib64/python3.7/site-packages Searching for importlib-metadata==2.0.0 Best match: importlib-metadata 2.0.0 Adding importlib-metadata 2.0.0 to easy-install.pth file Using /usr/lib64/python3.7/site-packages Searching for toml==0.10.1 Best match: toml 0.10.1 Adding toml 0.10.1 to easy-install.pth file Using /usr/lib64/python3.7/site-packages Searching for py==1.9.0 Best match: py 1.9.0 Adding py 1.9.0 to easy-install.pth file Using /usr/lib64/python3.7/site-packages Searching for pluggy==0.13.1 Best match: pluggy 0.13.1 Adding pluggy 0.13.1 to easy-install.pth file Using /usr/lib64/python3.7/site-packages Searching for packaging==20.4 Best match: packaging 20.4 Adding packaging 20.4 to easy-install.pth file Using /usr/lib64/python3.7/site-packages Searching for more-itertools==8.5.0 Best match: more-itertools 8.5.0 Adding more-itertools 8.5.0 to easy-install.pth file Using /usr/lib64/python3.7/site-packages Searching for iniconfig==1.0.0 Best match: iniconfig 1.0.0 Adding iniconfig 1.0.0 to easy-install.pth file Using /usr/lib64/python3.7/site-packages Searching for attrs==20.1.0 Best match: attrs 20.1.0 Adding attrs 20.1.0 to easy-install.pth file Using /usr/lib64/python3.7/site-packages Searching for zipp==3.1.0 Best match: zipp 3.1.0 Adding zipp 3.1.0 to easy-install.pth file Using /usr/lib64/python3.7/site-packages Finished processing dependencies for pytest-mock==3.3.1 ========================================= test session starts ========================================== platform linux -- Python 3.7.8, pytest-6.0.2, py-1.9.0, pluggy-0.13.1 -- /usr/bin/python3.7 cachedir: .pytest_cache hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('/var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/.hypothesis/examples') rootdir: /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1, configfile: tox.ini plugins: virtualenv-1.7.0, forked-1.3.0, xprocess-0.15.0, hypothesis-5.24.4, expect-1.1.0, shutil-1.7.0, xdist-2.1.0 collecting ... collected 62 items tests/test_pytest_mock.py::test_mock_patches[mock_using_patch_object] ERROR [ 1%] tests/test_pytest_mock.py::test_mock_patches[mock_using_patch] ERROR [ 3%] tests/test_pytest_mock.py::test_mock_patches[mock_using_patch_multiple] ERROR [ 4%] tests/test_pytest_mock.py::test_mock_patch_dict ERROR [ 6%] tests/test_pytest_mock.py::test_mock_patch_dict_resetall ERROR [ 8%] tests/test_pytest_mock.py::test_mocker_aliases[ANY] FAILED [ 9%] tests/test_pytest_mock.py::test_mocker_aliases[call] FAILED [ 11%] tests/test_pytest_mock.py::test_mocker_aliases[create_autospec] FAILED [ 12%] tests/test_pytest_mock.py::test_mocker_aliases[MagicMock] FAILED [ 14%] tests/test_pytest_mock.py::test_mocker_aliases[Mock] FAILED [ 16%] tests/test_pytest_mock.py::test_mocker_aliases[mock_open] FAILED [ 17%] tests/test_pytest_mock.py::test_mocker_aliases[NonCallableMock] FAILED [ 19%] tests/test_pytest_mock.py::test_mocker_aliases[PropertyMock] FAILED [ 20%] tests/test_pytest_mock.py::test_mocker_aliases[sentinel] FAILED [ 22%] tests/test_pytest_mock.py::test_mocker_resetall ERROR [ 24%] tests/test_pytest_mock.py::TestMockerStub::test_call ERROR [ 25%] tests/test_pytest_mock.py::TestMockerStub::test_repr_with_no_name ERROR [ 27%] tests/test_pytest_mock.py::TestMockerStub::test_repr_with_name ERROR [ 29%] tests/test_pytest_mock.py::TestMockerStub::test_failure_message_with_no_name ERROR [ 30%] tests/test_pytest_mock.py::TestMockerStub::test_failure_message_with_name[None] ERROR [ 32%] tests/test_pytest_mock.py::TestMockerStub::test_failure_message_with_name[] ERROR [ 33%] tests/test_pytest_mock.py::TestMockerStub::test_failure_message_with_name[f] ERROR [ 35%] tests/test_pytest_mock.py::TestMockerStub::test_failure_message_with_name[The Castle of aaarrrrggh] ERROR [ 37%] tests/test_pytest_mock.py::test_instance_method_spy ERROR [ 38%] tests/test_pytest_mock.py::test_instance_method_spy_exception ERROR [ 40%] tests/test_pytest_mock.py::test_spy_reset ERROR [ 41%] tests/test_pytest_mock.py::test_instance_method_by_class_spy ERROR [ 43%] tests/test_pytest_mock.py::test_instance_method_by_subclass_spy ERROR [ 45%] tests/test_pytest_mock.py::test_class_method_spy ERROR [ 46%] tests/test_pytest_mock.py::test_class_method_subclass_spy ERROR [ 48%] tests/test_pytest_mock.py::test_class_method_with_metaclass_spy ERROR [ 50%] tests/test_pytest_mock.py::test_static_method_spy ERROR [ 51%] tests/test_pytest_mock.py::test_static_method_subclass_spy ERROR [ 53%] tests/test_pytest_mock.py::test_callable_like_spy ERROR [ 54%] tests/test_pytest_mock.py::test_instance_async_method_spy ERROR [ 56%] tests/test_pytest_mock.py::test_assert_not_called_wrapper ERROR [ 58%] tests/test_pytest_mock.py::test_assert_called_with_wrapper ERROR [ 59%] tests/test_pytest_mock.py::test_assert_called_once_with_wrapper ERROR [ 61%] tests/test_pytest_mock.py::test_assert_called_once_wrapper ERROR [ 62%] tests/test_pytest_mock.py::test_assert_called_wrapper ERROR [ 64%] tests/test_pytest_mock.py::test_assert_called_args_with_introspection SKIPPED [ 66%] tests/test_pytest_mock.py::test_assert_called_kwargs_with_introspection SKIPPED [ 67%] tests/test_pytest_mock.py::test_assert_any_call_wrapper ERROR [ 69%] tests/test_pytest_mock.py::test_assert_has_calls ERROR [ 70%] tests/test_pytest_mock.py::test_monkeypatch_ini ERROR [ 72%] tests/test_pytest_mock.py::test_parse_ini_boolean PASSED [ 74%] tests/test_pytest_mock.py::test_patched_method_parameter_name ERROR [ 75%] tests/test_pytest_mock.py::test_monkeypatch_native FAILED [ 77%] tests/test_pytest_mock.py::test_monkeypatch_no_terminal PASSED [ 79%] tests/test_pytest_mock.py::test_detailed_introspection SKIPPED [ 80%] tests/test_pytest_mock.py::test_detailed_introspection_async SKIPPED [ 82%] tests/test_pytest_mock.py::test_missing_introspection PASSED [ 83%] tests/test_pytest_mock.py::test_assert_called_with_unicode_arguments ERROR [ 85%] tests/test_pytest_mock.py::test_plain_stopall FAILED [ 87%] tests/test_pytest_mock.py::test_abort_patch_object_context_manager ERROR [ 88%] tests/test_pytest_mock.py::test_abort_patch_context_manager ERROR [ 90%] tests/test_pytest_mock.py::test_context_manager_patch_example ERROR [ 91%] tests/test_pytest_mock.py::test_abort_patch_context_manager_with_stale_pyc FAILED [ 93%] tests/test_pytest_mock.py::test_used_with_class_scope FAILED [ 95%] tests/test_pytest_mock.py::test_used_with_module_scope FAILED [ 96%] tests/test_pytest_mock.py::test_used_with_package_scope FAILED [ 98%] tests/test_pytest_mock.py::test_used_with_session_scope FAILED [100%] ================================================ ERRORS ================================================ _____________________ ERROR at setup of test_mock_patches[mock_using_patch_object] _____________________ file /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py, line 98 @pytest.mark.parametrize( "mock_fs", [mock_using_patch_object, mock_using_patch, mock_using_patch_multiple] ) def test_mock_patches( 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, testrun_uid, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, virtualenv, worker_id, workspace, xprocess > use 'pytest --fixtures [testpath]' for help on them. /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py:98 ________________________ ERROR at setup of test_mock_patches[mock_using_patch] _________________________ file /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py, line 98 @pytest.mark.parametrize( "mock_fs", [mock_using_patch_object, mock_using_patch, mock_using_patch_multiple] ) def test_mock_patches( 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, testrun_uid, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, virtualenv, worker_id, workspace, xprocess > use 'pytest --fixtures [testpath]' for help on them. /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py:98 ____________________ ERROR at setup of test_mock_patches[mock_using_patch_multiple] ____________________ file /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py, line 98 @pytest.mark.parametrize( "mock_fs", [mock_using_patch_object, mock_using_patch, mock_using_patch_multiple] ) def test_mock_patches( 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, testrun_uid, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, virtualenv, worker_id, workspace, xprocess > use 'pytest --fixtures [testpath]' for help on them. /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py:98 ________________________________ ERROR at setup of test_mock_patch_dict ________________________________ file /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py, line 119 def test_mock_patch_dict(mocker: MockerFixture) -> None: 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, testrun_uid, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, virtualenv, worker_id, workspace, xprocess > use 'pytest --fixtures [testpath]' for help on them. /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py:119 ___________________________ ERROR at setup of test_mock_patch_dict_resetall ____________________________ file /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py, line 131 def test_mock_patch_dict_resetall(mocker: MockerFixture) -> None: 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, testrun_uid, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, virtualenv, worker_id, workspace, xprocess > use 'pytest --fixtures [testpath]' for help on them. /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py:131 ________________________________ ERROR at setup of test_mocker_resetall ________________________________ file /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py, line 166 def test_mocker_resetall(mocker: MockerFixture) -> None: 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, testrun_uid, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, virtualenv, worker_id, workspace, xprocess > use 'pytest --fixtures [testpath]' for help on them. /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py:166 ______________________________ ERROR at setup of TestMockerStub.test_call ______________________________ file /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py, line 182 def test_call(self, mocker: MockerFixture) -> None: 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, testrun_uid, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, virtualenv, worker_id, workspace, xprocess > use 'pytest --fixtures [testpath]' for help on them. /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py:182 _______________________ ERROR at setup of TestMockerStub.test_repr_with_no_name ________________________ file /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py, line 187 def test_repr_with_no_name(self, mocker: MockerFixture) -> None: 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, testrun_uid, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, virtualenv, worker_id, workspace, xprocess > use 'pytest --fixtures [testpath]' for help on them. /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py:187 _________________________ ERROR at setup of TestMockerStub.test_repr_with_name _________________________ file /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py, line 191 def test_repr_with_name(self, mocker: MockerFixture) -> None: 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, testrun_uid, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, virtualenv, worker_id, workspace, xprocess > use 'pytest --fixtures [testpath]' for help on them. /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py:191 __________________ ERROR at setup of TestMockerStub.test_failure_message_with_no_name __________________ file /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py, line 208 def test_failure_message_with_no_name(self, mocker: MagicMock) -> None: 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, testrun_uid, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, virtualenv, worker_id, workspace, xprocess > use 'pytest --fixtures [testpath]' for help on them. /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py:208 ________________ ERROR at setup of TestMockerStub.test_failure_message_with_name[None] _________________ file /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py, line 211 @pytest.mark.parametrize("name", (None, "", "f", "The Castle of aaarrrrggh")) def test_failure_message_with_name(self, mocker: MagicMock, name: str) -> None: 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, testrun_uid, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, virtualenv, worker_id, workspace, xprocess > use 'pytest --fixtures [testpath]' for help on them. /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py:211 __________________ ERROR at setup of TestMockerStub.test_failure_message_with_name[] ___________________ file /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py, line 211 @pytest.mark.parametrize("name", (None, "", "f", "The Castle of aaarrrrggh")) def test_failure_message_with_name(self, mocker: MagicMock, name: str) -> None: 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, testrun_uid, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, virtualenv, worker_id, workspace, xprocess > use 'pytest --fixtures [testpath]' for help on them. /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py:211 __________________ ERROR at setup of TestMockerStub.test_failure_message_with_name[f] __________________ file /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py, line 211 @pytest.mark.parametrize("name", (None, "", "f", "The Castle of aaarrrrggh")) def test_failure_message_with_name(self, mocker: MagicMock, name: str) -> None: 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, testrun_uid, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, virtualenv, worker_id, workspace, xprocess > use 'pytest --fixtures [testpath]' for help on them. /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py:211 ______ ERROR at setup of TestMockerStub.test_failure_message_with_name[The Castle of aaarrrrggh] _______ file /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py, line 211 @pytest.mark.parametrize("name", (None, "", "f", "The Castle of aaarrrrggh")) def test_failure_message_with_name(self, mocker: MagicMock, name: str) -> None: 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, testrun_uid, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, virtualenv, worker_id, workspace, xprocess > use 'pytest --fixtures [testpath]' for help on them. /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py:211 ______________________________ ERROR at setup of test_instance_method_spy ______________________________ file /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py, line 216 def test_instance_method_spy(mocker: MockerFixture) -> None: 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, testrun_uid, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, virtualenv, worker_id, workspace, xprocess > use 'pytest --fixtures [testpath]' for help on them. /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py:216 _________________________ ERROR at setup of test_instance_method_spy_exception _________________________ file /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py, line 232 def test_instance_method_spy_exception(mocker: MockerFixture) -> None: 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, testrun_uid, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, virtualenv, worker_id, workspace, xprocess > use 'pytest --fixtures [testpath]' for help on them. /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py:232 ___________________________________ ERROR at setup of test_spy_reset ___________________________________ file /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py, line 250 def test_spy_reset(mocker: MockerFixture) -> None: 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, testrun_uid, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, virtualenv, worker_id, workspace, xprocess > use 'pytest --fixtures [testpath]' for help on them. /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py:250 _________________________ ERROR at setup of test_instance_method_by_class_spy __________________________ file /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py, line 275 @skip_pypy def test_instance_method_by_class_spy(mocker: MockerFixture) -> None: 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, testrun_uid, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, virtualenv, worker_id, workspace, xprocess > use 'pytest --fixtures [testpath]' for help on them. /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py:275 ________________________ ERROR at setup of test_instance_method_by_subclass_spy ________________________ file /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py, line 290 @skip_pypy def test_instance_method_by_subclass_spy(mocker: MockerFixture) -> None: 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, testrun_uid, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, virtualenv, worker_id, workspace, xprocess > use 'pytest --fixtures [testpath]' for help on them. /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py:290 _______________________________ ERROR at setup of test_class_method_spy ________________________________ file /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py, line 309 @skip_pypy def test_class_method_spy(mocker: MockerFixture) -> None: 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, testrun_uid, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, virtualenv, worker_id, workspace, xprocess > use 'pytest --fixtures [testpath]' for help on them. /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py:309 ___________________________ ERROR at setup of test_class_method_subclass_spy ___________________________ file /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py, line 324 @skip_pypy def test_class_method_subclass_spy(mocker: MockerFixture) -> None: 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, testrun_uid, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, virtualenv, worker_id, workspace, xprocess > use 'pytest --fixtures [testpath]' for help on them. /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py:324 ________________________ ERROR at setup of test_class_method_with_metaclass_spy ________________________ file /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py, line 342 @skip_pypy def test_class_method_with_metaclass_spy(mocker: MockerFixture) -> None: 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, testrun_uid, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, virtualenv, worker_id, workspace, xprocess > use 'pytest --fixtures [testpath]' for help on them. /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py:342 _______________________________ ERROR at setup of test_static_method_spy _______________________________ file /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py, line 363 @skip_pypy def test_static_method_spy(mocker: MockerFixture) -> None: 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, testrun_uid, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, virtualenv, worker_id, workspace, xprocess > use 'pytest --fixtures [testpath]' for help on them. /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py:363 __________________________ ERROR at setup of test_static_method_subclass_spy ___________________________ file /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py, line 378 @skip_pypy def test_static_method_subclass_spy(mocker: MockerFixture) -> None: 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, testrun_uid, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, virtualenv, worker_id, workspace, xprocess > use 'pytest --fixtures [testpath]' for help on them. /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py:378 _______________________________ ERROR at setup of test_callable_like_spy _______________________________ file /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py, line 396 def test_callable_like_spy(testdir: Any, mocker: MockerFixture) -> None: 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, testrun_uid, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, virtualenv, worker_id, workspace, xprocess > use 'pytest --fixtures [testpath]' for help on them. /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py:396 ___________________________ ERROR at setup of test_instance_async_method_spy ___________________________ file /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py, line 416 @pytest.mark.asyncio async def test_instance_async_method_spy(mocker: MockerFixture) -> None: class Foo: async def bar(self, arg): return arg * 2 foo = Foo() spy = mocker.spy(foo, "bar") result = await foo.bar(10) spy.assert_called_once_with(10) assert result == 20 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, testrun_uid, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, virtualenv, worker_id, workspace, xprocess > use 'pytest --fixtures [testpath]' for help on them. /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py:416 ___________________________ ERROR at setup of test_assert_not_called_wrapper ___________________________ file /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py, line 464 def test_assert_not_called_wrapper(mocker: MockerFixture) -> None: 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, testrun_uid, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, virtualenv, worker_id, workspace, xprocess > use 'pytest --fixtures [testpath]' for help on them. /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py:464 __________________________ ERROR at setup of test_assert_called_with_wrapper ___________________________ file /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py, line 472 def test_assert_called_with_wrapper(mocker: MockerFixture) -> None: 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, testrun_uid, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, virtualenv, worker_id, workspace, xprocess > use 'pytest --fixtures [testpath]' for help on them. /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py:472 ________________________ ERROR at setup of test_assert_called_once_with_wrapper ________________________ file /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py, line 480 def test_assert_called_once_with_wrapper(mocker: MockerFixture) -> None: 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, testrun_uid, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, virtualenv, worker_id, workspace, xprocess > use 'pytest --fixtures [testpath]' for help on them. /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py:480 __________________________ ERROR at setup of test_assert_called_once_wrapper ___________________________ file /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py, line 489 def test_assert_called_once_wrapper(mocker: MockerFixture) -> None: 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, testrun_uid, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, virtualenv, worker_id, workspace, xprocess > use 'pytest --fixtures [testpath]' for help on them. /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py:489 _____________________________ ERROR at setup of test_assert_called_wrapper _____________________________ file /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py, line 500 def test_assert_called_wrapper(mocker: MockerFixture) -> None: 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, testrun_uid, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, virtualenv, worker_id, workspace, xprocess > use 'pytest --fixtures [testpath]' for help on them. /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py:500 ____________________________ ERROR at setup of test_assert_any_call_wrapper ____________________________ file /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py, line 544 def test_assert_any_call_wrapper(mocker: MockerFixture) -> None: 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, testrun_uid, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, virtualenv, worker_id, workspace, xprocess > use 'pytest --fixtures [testpath]' for help on them. /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py:544 _______________________________ ERROR at setup of test_assert_has_calls ________________________________ file /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py, line 553 def test_assert_has_calls(mocker: MockerFixture) -> None: 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, testrun_uid, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, virtualenv, worker_id, workspace, xprocess > use 'pytest --fixtures [testpath]' for help on them. /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py:553 ________________________________ ERROR at setup of test_monkeypatch_ini ________________________________ file /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py, line 561 def test_monkeypatch_ini(testdir: Any, mocker: MockerFixture) -> None: 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, testrun_uid, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, virtualenv, worker_id, workspace, xprocess > use 'pytest --fixtures [testpath]' for help on them. /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py:561 _________________________ ERROR at setup of test_patched_method_parameter_name _________________________ file /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py, line 593 def test_patched_method_parameter_name(mocker: MockerFixture) -> None: 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, testrun_uid, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, virtualenv, worker_id, workspace, xprocess > use 'pytest --fixtures [testpath]' for help on them. /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py:593 _____________________ ERROR at setup of test_assert_called_with_unicode_arguments ______________________ file /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py, line 759 def test_assert_called_with_unicode_arguments(mocker: MockerFixture) -> None: 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, testrun_uid, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, virtualenv, worker_id, workspace, xprocess > use 'pytest --fixtures [testpath]' for help on them. /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py:759 ______________________ ERROR at setup of test_abort_patch_object_context_manager _______________________ file /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py, line 789 def test_abort_patch_object_context_manager(mocker: MockerFixture) -> None: 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, testrun_uid, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, virtualenv, worker_id, workspace, xprocess > use 'pytest --fixtures [testpath]' for help on them. /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py:789 __________________________ ERROR at setup of test_abort_patch_context_manager __________________________ file /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py, line 808 def test_abort_patch_context_manager(mocker: MockerFixture) -> None: 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, testrun_uid, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, virtualenv, worker_id, workspace, xprocess > use 'pytest --fixtures [testpath]' for help on them. /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py:808 _________________________ ERROR at setup of test_context_manager_patch_example _________________________ file /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py, line 821 def test_context_manager_patch_example(mocker: MockerFixture) -> None: 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, testrun_uid, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, virtualenv, worker_id, workspace, xprocess > use 'pytest --fixtures [testpath]' for help on them. /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py:821 =============================================== FAILURES =============================================== _______________________________________ test_mocker_aliases[ANY] _______________________________________ self = <_pytest.config.Config object at 0x3fff96333f10>, name = 'mock_use_standalone_module' def getini(self, name: str): """ return configuration value from an :ref:`ini file `. If the specified name hasn't been registered through a prior :py:func:`parser.addini <_pytest.config.argparsing.Parser.addini>` call (usually from a plugin), a ValueError is raised. """ try: > return self._inicache[name] E KeyError: 'mock_use_standalone_module' /usr/lib/python3.7/site-packages/_pytest/config/__init__.py:1235: KeyError During handling of the above exception, another exception occurred: self = <_pytest.config.Config object at 0x3fff96333f10>, name = 'mock_use_standalone_module' def _getini(self, name: str): try: > description, type, default = self._parser._inidict[name] E KeyError: 'mock_use_standalone_module' /usr/lib/python3.7/site-packages/_pytest/config/__init__.py:1242: KeyError The above exception was the direct cause of the following exception: name = 'ANY', pytestconfig = <_pytest.config.Config object at 0x3fff96333f10> @pytest.mark.parametrize( "name", [ "ANY", "call", "create_autospec", "MagicMock", "Mock", "mock_open", "NonCallableMock", "PropertyMock", "sentinel", ], ) def test_mocker_aliases(name: str, pytestconfig: Any) -> None: from pytest_mock.plugin import _get_mock_module > mock_module = _get_mock_module(pytestconfig) tests/test_pytest_mock.py:160: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../pytest-mock-3.3.1-python3_7/lib/pytest_mock/plugin.py:31: in _get_mock_module config.getini("mock_use_standalone_module") /usr/lib/python3.7/site-packages/_pytest/config/__init__.py:1237: in getini self._inicache[name] = val = self._getini(name) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.config.Config object at 0x3fff96333f10>, name = 'mock_use_standalone_module' def _getini(self, name: str): try: description, type, default = self._parser._inidict[name] except KeyError as e: > raise ValueError("unknown configuration value: {!r}".format(name)) from e E ValueError: unknown configuration value: 'mock_use_standalone_module' /usr/lib/python3.7/site-packages/_pytest/config/__init__.py:1244: ValueError ______________________________________ test_mocker_aliases[call] _______________________________________ self = <_pytest.config.Config object at 0x3fff96333f10>, name = 'mock_use_standalone_module' def getini(self, name: str): """ return configuration value from an :ref:`ini file `. If the specified name hasn't been registered through a prior :py:func:`parser.addini <_pytest.config.argparsing.Parser.addini>` call (usually from a plugin), a ValueError is raised. """ try: > return self._inicache[name] E KeyError: 'mock_use_standalone_module' /usr/lib/python3.7/site-packages/_pytest/config/__init__.py:1235: KeyError During handling of the above exception, another exception occurred: self = <_pytest.config.Config object at 0x3fff96333f10>, name = 'mock_use_standalone_module' def _getini(self, name: str): try: > description, type, default = self._parser._inidict[name] E KeyError: 'mock_use_standalone_module' /usr/lib/python3.7/site-packages/_pytest/config/__init__.py:1242: KeyError The above exception was the direct cause of the following exception: name = 'call', pytestconfig = <_pytest.config.Config object at 0x3fff96333f10> @pytest.mark.parametrize( "name", [ "ANY", "call", "create_autospec", "MagicMock", "Mock", "mock_open", "NonCallableMock", "PropertyMock", "sentinel", ], ) def test_mocker_aliases(name: str, pytestconfig: Any) -> None: from pytest_mock.plugin import _get_mock_module > mock_module = _get_mock_module(pytestconfig) tests/test_pytest_mock.py:160: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../pytest-mock-3.3.1-python3_7/lib/pytest_mock/plugin.py:31: in _get_mock_module config.getini("mock_use_standalone_module") /usr/lib/python3.7/site-packages/_pytest/config/__init__.py:1237: in getini self._inicache[name] = val = self._getini(name) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.config.Config object at 0x3fff96333f10>, name = 'mock_use_standalone_module' def _getini(self, name: str): try: description, type, default = self._parser._inidict[name] except KeyError as e: > raise ValueError("unknown configuration value: {!r}".format(name)) from e E ValueError: unknown configuration value: 'mock_use_standalone_module' /usr/lib/python3.7/site-packages/_pytest/config/__init__.py:1244: ValueError _________________________________ test_mocker_aliases[create_autospec] _________________________________ self = <_pytest.config.Config object at 0x3fff96333f10>, name = 'mock_use_standalone_module' def getini(self, name: str): """ return configuration value from an :ref:`ini file `. If the specified name hasn't been registered through a prior :py:func:`parser.addini <_pytest.config.argparsing.Parser.addini>` call (usually from a plugin), a ValueError is raised. """ try: > return self._inicache[name] E KeyError: 'mock_use_standalone_module' /usr/lib/python3.7/site-packages/_pytest/config/__init__.py:1235: KeyError During handling of the above exception, another exception occurred: self = <_pytest.config.Config object at 0x3fff96333f10>, name = 'mock_use_standalone_module' def _getini(self, name: str): try: > description, type, default = self._parser._inidict[name] E KeyError: 'mock_use_standalone_module' /usr/lib/python3.7/site-packages/_pytest/config/__init__.py:1242: KeyError The above exception was the direct cause of the following exception: name = 'create_autospec', pytestconfig = <_pytest.config.Config object at 0x3fff96333f10> @pytest.mark.parametrize( "name", [ "ANY", "call", "create_autospec", "MagicMock", "Mock", "mock_open", "NonCallableMock", "PropertyMock", "sentinel", ], ) def test_mocker_aliases(name: str, pytestconfig: Any) -> None: from pytest_mock.plugin import _get_mock_module > mock_module = _get_mock_module(pytestconfig) tests/test_pytest_mock.py:160: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../pytest-mock-3.3.1-python3_7/lib/pytest_mock/plugin.py:31: in _get_mock_module config.getini("mock_use_standalone_module") /usr/lib/python3.7/site-packages/_pytest/config/__init__.py:1237: in getini self._inicache[name] = val = self._getini(name) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.config.Config object at 0x3fff96333f10>, name = 'mock_use_standalone_module' def _getini(self, name: str): try: description, type, default = self._parser._inidict[name] except KeyError as e: > raise ValueError("unknown configuration value: {!r}".format(name)) from e E ValueError: unknown configuration value: 'mock_use_standalone_module' /usr/lib/python3.7/site-packages/_pytest/config/__init__.py:1244: ValueError ____________________________________ test_mocker_aliases[MagicMock] ____________________________________ self = <_pytest.config.Config object at 0x3fff96333f10>, name = 'mock_use_standalone_module' def getini(self, name: str): """ return configuration value from an :ref:`ini file `. If the specified name hasn't been registered through a prior :py:func:`parser.addini <_pytest.config.argparsing.Parser.addini>` call (usually from a plugin), a ValueError is raised. """ try: > return self._inicache[name] E KeyError: 'mock_use_standalone_module' /usr/lib/python3.7/site-packages/_pytest/config/__init__.py:1235: KeyError During handling of the above exception, another exception occurred: self = <_pytest.config.Config object at 0x3fff96333f10>, name = 'mock_use_standalone_module' def _getini(self, name: str): try: > description, type, default = self._parser._inidict[name] E KeyError: 'mock_use_standalone_module' /usr/lib/python3.7/site-packages/_pytest/config/__init__.py:1242: KeyError The above exception was the direct cause of the following exception: name = 'MagicMock', pytestconfig = <_pytest.config.Config object at 0x3fff96333f10> @pytest.mark.parametrize( "name", [ "ANY", "call", "create_autospec", "MagicMock", "Mock", "mock_open", "NonCallableMock", "PropertyMock", "sentinel", ], ) def test_mocker_aliases(name: str, pytestconfig: Any) -> None: from pytest_mock.plugin import _get_mock_module > mock_module = _get_mock_module(pytestconfig) tests/test_pytest_mock.py:160: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../pytest-mock-3.3.1-python3_7/lib/pytest_mock/plugin.py:31: in _get_mock_module config.getini("mock_use_standalone_module") /usr/lib/python3.7/site-packages/_pytest/config/__init__.py:1237: in getini self._inicache[name] = val = self._getini(name) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.config.Config object at 0x3fff96333f10>, name = 'mock_use_standalone_module' def _getini(self, name: str): try: description, type, default = self._parser._inidict[name] except KeyError as e: > raise ValueError("unknown configuration value: {!r}".format(name)) from e E ValueError: unknown configuration value: 'mock_use_standalone_module' /usr/lib/python3.7/site-packages/_pytest/config/__init__.py:1244: ValueError ______________________________________ test_mocker_aliases[Mock] _______________________________________ self = <_pytest.config.Config object at 0x3fff96333f10>, name = 'mock_use_standalone_module' def getini(self, name: str): """ return configuration value from an :ref:`ini file `. If the specified name hasn't been registered through a prior :py:func:`parser.addini <_pytest.config.argparsing.Parser.addini>` call (usually from a plugin), a ValueError is raised. """ try: > return self._inicache[name] E KeyError: 'mock_use_standalone_module' /usr/lib/python3.7/site-packages/_pytest/config/__init__.py:1235: KeyError During handling of the above exception, another exception occurred: self = <_pytest.config.Config object at 0x3fff96333f10>, name = 'mock_use_standalone_module' def _getini(self, name: str): try: > description, type, default = self._parser._inidict[name] E KeyError: 'mock_use_standalone_module' /usr/lib/python3.7/site-packages/_pytest/config/__init__.py:1242: KeyError The above exception was the direct cause of the following exception: name = 'Mock', pytestconfig = <_pytest.config.Config object at 0x3fff96333f10> @pytest.mark.parametrize( "name", [ "ANY", "call", "create_autospec", "MagicMock", "Mock", "mock_open", "NonCallableMock", "PropertyMock", "sentinel", ], ) def test_mocker_aliases(name: str, pytestconfig: Any) -> None: from pytest_mock.plugin import _get_mock_module > mock_module = _get_mock_module(pytestconfig) tests/test_pytest_mock.py:160: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../pytest-mock-3.3.1-python3_7/lib/pytest_mock/plugin.py:31: in _get_mock_module config.getini("mock_use_standalone_module") /usr/lib/python3.7/site-packages/_pytest/config/__init__.py:1237: in getini self._inicache[name] = val = self._getini(name) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.config.Config object at 0x3fff96333f10>, name = 'mock_use_standalone_module' def _getini(self, name: str): try: description, type, default = self._parser._inidict[name] except KeyError as e: > raise ValueError("unknown configuration value: {!r}".format(name)) from e E ValueError: unknown configuration value: 'mock_use_standalone_module' /usr/lib/python3.7/site-packages/_pytest/config/__init__.py:1244: ValueError ____________________________________ test_mocker_aliases[mock_open] ____________________________________ self = <_pytest.config.Config object at 0x3fff96333f10>, name = 'mock_use_standalone_module' def getini(self, name: str): """ return configuration value from an :ref:`ini file `. If the specified name hasn't been registered through a prior :py:func:`parser.addini <_pytest.config.argparsing.Parser.addini>` call (usually from a plugin), a ValueError is raised. """ try: > return self._inicache[name] E KeyError: 'mock_use_standalone_module' /usr/lib/python3.7/site-packages/_pytest/config/__init__.py:1235: KeyError During handling of the above exception, another exception occurred: self = <_pytest.config.Config object at 0x3fff96333f10>, name = 'mock_use_standalone_module' def _getini(self, name: str): try: > description, type, default = self._parser._inidict[name] E KeyError: 'mock_use_standalone_module' /usr/lib/python3.7/site-packages/_pytest/config/__init__.py:1242: KeyError The above exception was the direct cause of the following exception: name = 'mock_open', pytestconfig = <_pytest.config.Config object at 0x3fff96333f10> @pytest.mark.parametrize( "name", [ "ANY", "call", "create_autospec", "MagicMock", "Mock", "mock_open", "NonCallableMock", "PropertyMock", "sentinel", ], ) def test_mocker_aliases(name: str, pytestconfig: Any) -> None: from pytest_mock.plugin import _get_mock_module > mock_module = _get_mock_module(pytestconfig) tests/test_pytest_mock.py:160: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../pytest-mock-3.3.1-python3_7/lib/pytest_mock/plugin.py:31: in _get_mock_module config.getini("mock_use_standalone_module") /usr/lib/python3.7/site-packages/_pytest/config/__init__.py:1237: in getini self._inicache[name] = val = self._getini(name) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.config.Config object at 0x3fff96333f10>, name = 'mock_use_standalone_module' def _getini(self, name: str): try: description, type, default = self._parser._inidict[name] except KeyError as e: > raise ValueError("unknown configuration value: {!r}".format(name)) from e E ValueError: unknown configuration value: 'mock_use_standalone_module' /usr/lib/python3.7/site-packages/_pytest/config/__init__.py:1244: ValueError _________________________________ test_mocker_aliases[NonCallableMock] _________________________________ self = <_pytest.config.Config object at 0x3fff96333f10>, name = 'mock_use_standalone_module' def getini(self, name: str): """ return configuration value from an :ref:`ini file `. If the specified name hasn't been registered through a prior :py:func:`parser.addini <_pytest.config.argparsing.Parser.addini>` call (usually from a plugin), a ValueError is raised. """ try: > return self._inicache[name] E KeyError: 'mock_use_standalone_module' /usr/lib/python3.7/site-packages/_pytest/config/__init__.py:1235: KeyError During handling of the above exception, another exception occurred: self = <_pytest.config.Config object at 0x3fff96333f10>, name = 'mock_use_standalone_module' def _getini(self, name: str): try: > description, type, default = self._parser._inidict[name] E KeyError: 'mock_use_standalone_module' /usr/lib/python3.7/site-packages/_pytest/config/__init__.py:1242: KeyError The above exception was the direct cause of the following exception: name = 'NonCallableMock', pytestconfig = <_pytest.config.Config object at 0x3fff96333f10> @pytest.mark.parametrize( "name", [ "ANY", "call", "create_autospec", "MagicMock", "Mock", "mock_open", "NonCallableMock", "PropertyMock", "sentinel", ], ) def test_mocker_aliases(name: str, pytestconfig: Any) -> None: from pytest_mock.plugin import _get_mock_module > mock_module = _get_mock_module(pytestconfig) tests/test_pytest_mock.py:160: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../pytest-mock-3.3.1-python3_7/lib/pytest_mock/plugin.py:31: in _get_mock_module config.getini("mock_use_standalone_module") /usr/lib/python3.7/site-packages/_pytest/config/__init__.py:1237: in getini self._inicache[name] = val = self._getini(name) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.config.Config object at 0x3fff96333f10>, name = 'mock_use_standalone_module' def _getini(self, name: str): try: description, type, default = self._parser._inidict[name] except KeyError as e: > raise ValueError("unknown configuration value: {!r}".format(name)) from e E ValueError: unknown configuration value: 'mock_use_standalone_module' /usr/lib/python3.7/site-packages/_pytest/config/__init__.py:1244: ValueError __________________________________ test_mocker_aliases[PropertyMock] ___________________________________ self = <_pytest.config.Config object at 0x3fff96333f10>, name = 'mock_use_standalone_module' def getini(self, name: str): """ return configuration value from an :ref:`ini file `. If the specified name hasn't been registered through a prior :py:func:`parser.addini <_pytest.config.argparsing.Parser.addini>` call (usually from a plugin), a ValueError is raised. """ try: > return self._inicache[name] E KeyError: 'mock_use_standalone_module' /usr/lib/python3.7/site-packages/_pytest/config/__init__.py:1235: KeyError During handling of the above exception, another exception occurred: self = <_pytest.config.Config object at 0x3fff96333f10>, name = 'mock_use_standalone_module' def _getini(self, name: str): try: > description, type, default = self._parser._inidict[name] E KeyError: 'mock_use_standalone_module' /usr/lib/python3.7/site-packages/_pytest/config/__init__.py:1242: KeyError The above exception was the direct cause of the following exception: name = 'PropertyMock', pytestconfig = <_pytest.config.Config object at 0x3fff96333f10> @pytest.mark.parametrize( "name", [ "ANY", "call", "create_autospec", "MagicMock", "Mock", "mock_open", "NonCallableMock", "PropertyMock", "sentinel", ], ) def test_mocker_aliases(name: str, pytestconfig: Any) -> None: from pytest_mock.plugin import _get_mock_module > mock_module = _get_mock_module(pytestconfig) tests/test_pytest_mock.py:160: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../pytest-mock-3.3.1-python3_7/lib/pytest_mock/plugin.py:31: in _get_mock_module config.getini("mock_use_standalone_module") /usr/lib/python3.7/site-packages/_pytest/config/__init__.py:1237: in getini self._inicache[name] = val = self._getini(name) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.config.Config object at 0x3fff96333f10>, name = 'mock_use_standalone_module' def _getini(self, name: str): try: description, type, default = self._parser._inidict[name] except KeyError as e: > raise ValueError("unknown configuration value: {!r}".format(name)) from e E ValueError: unknown configuration value: 'mock_use_standalone_module' /usr/lib/python3.7/site-packages/_pytest/config/__init__.py:1244: ValueError ____________________________________ test_mocker_aliases[sentinel] _____________________________________ self = <_pytest.config.Config object at 0x3fff96333f10>, name = 'mock_use_standalone_module' def getini(self, name: str): """ return configuration value from an :ref:`ini file `. If the specified name hasn't been registered through a prior :py:func:`parser.addini <_pytest.config.argparsing.Parser.addini>` call (usually from a plugin), a ValueError is raised. """ try: > return self._inicache[name] E KeyError: 'mock_use_standalone_module' /usr/lib/python3.7/site-packages/_pytest/config/__init__.py:1235: KeyError During handling of the above exception, another exception occurred: self = <_pytest.config.Config object at 0x3fff96333f10>, name = 'mock_use_standalone_module' def _getini(self, name: str): try: > description, type, default = self._parser._inidict[name] E KeyError: 'mock_use_standalone_module' /usr/lib/python3.7/site-packages/_pytest/config/__init__.py:1242: KeyError The above exception was the direct cause of the following exception: name = 'sentinel', pytestconfig = <_pytest.config.Config object at 0x3fff96333f10> @pytest.mark.parametrize( "name", [ "ANY", "call", "create_autospec", "MagicMock", "Mock", "mock_open", "NonCallableMock", "PropertyMock", "sentinel", ], ) def test_mocker_aliases(name: str, pytestconfig: Any) -> None: from pytest_mock.plugin import _get_mock_module > mock_module = _get_mock_module(pytestconfig) tests/test_pytest_mock.py:160: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../pytest-mock-3.3.1-python3_7/lib/pytest_mock/plugin.py:31: in _get_mock_module config.getini("mock_use_standalone_module") /usr/lib/python3.7/site-packages/_pytest/config/__init__.py:1237: in getini self._inicache[name] = val = self._getini(name) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.config.Config object at 0x3fff96333f10>, name = 'mock_use_standalone_module' def _getini(self, name: str): try: description, type, default = self._parser._inidict[name] except KeyError as e: > raise ValueError("unknown configuration value: {!r}".format(name)) from e E ValueError: unknown configuration value: 'mock_use_standalone_module' /usr/lib/python3.7/site-packages/_pytest/config/__init__.py:1244: ValueError _______________________________________ test_monkeypatch_native ________________________________________ testdir = def test_monkeypatch_native(testdir: Any) -> None: """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 = testdir.runpytest_subprocess("--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 AssertionError /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py:629: AssertionError ----------------------------------------- Captured stdout call ----------------------------------------- running: /usr/bin/python3.7 -mpytest --basetemp=/var/tmp/portage/dev-python/pytest-mock-3.3.1/temp/pytest-of-portage/pytest-0/test_monkeypatch_native0/runpytest-0 --tb=native in: /var/tmp/portage/dev-python/pytest-mock-3.3.1/temp/pytest-of-portage/pytest-0/test_monkeypatch_native0 ========================================= test session starts ========================================== platform linux -- Python 3.7.8, pytest-6.0.2, py-1.9.0, pluggy-0.13.1 rootdir: /var/tmp/portage/dev-python/pytest-mock-3.3.1/temp/pytest-of-portage/pytest-0/test_monkeypatch_native0 plugins: virtualenv-1.7.0, forked-1.3.0, xprocess-0.15.0, hypothesis-5.24.4, expect-1.1.0, shutil-1.7.0, xdist-2.1.0 collected 1 item test_monkeypatch_native.py E [100%] ================================================ ERRORS ================================================ ______________________________________ ERROR at setup of test_foo ______________________________________ file /var/tmp/portage/dev-python/pytest-mock-3.3.1/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, testrun_uid, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, virtualenv, worker_id, workspace, xprocess > use 'pytest --fixtures [testpath]' for help on them. /var/tmp/portage/dev-python/pytest-mock-3.3.1/temp/pytest-of-portage/pytest-0/test_monkeypatch_native0/test_monkeypatch_native.py:1 ======================================= short test summary info ======================================== ERROR test_monkeypatch_native.py::test_foo =========================================== 1 error in 0.06s =========================================== __________________________________________ test_plain_stopall __________________________________________ testdir = def test_plain_stopall(testdir: Any) -> None: """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: '========================================= test session starts ==========================================' E and: 'platform linux -- Python 3.7.8, pytest-6.0.2, py-1.9.0, pluggy-0.13.1' E and: 'rootdir: /var/tmp/portage/dev-python/pytest-mock-3.3.1/temp/pytest-of-portage/pytest-0/test_plain_stopall0' E and: 'plugins: virtualenv-1.7.0, forked-1.3.0, xprocess-0.15.0, hypothesis-5.24.4, expect-1.1.0, shutil-1.7.0, xdist-2.1.0' E and: 'collected 1 item' E and: '' E and: 'test_plain_stopall.py E [100%]' E and: '' E and: '================================================ ERRORS ================================================' E and: '_______________________________ ERROR at setup of test_get_random_number _______________________________' E and: 'file /var/tmp/portage/dev-python/pytest-mock-3.3.1/temp/pytest-of-portage/pytest-0/test_plain_stopall0/test_plain_stopall.py, line 6' E and: ' def test_get_random_number(mocker):' E and: "E fixture 'mocker' not found" E and: '> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, testrun_uid, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, virtualenv, worker_id, workspace, xprocess' E and: "> use 'pytest --fixtures [testpath]' for help on them." E and: '' E and: '/var/tmp/portage/dev-python/pytest-mock-3.3.1/temp/pytest-of-portage/pytest-0/test_plain_stopall0/test_plain_stopall.py:6' E and: '======================================= short test summary info ========================================' E and: 'ERROR test_plain_stopall.py::test_get_random_number' E and: '=========================================== 1 error in 0.06s ===========================================' E remains unmatched: '* 1 passed in *' /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py:785: Failed ----------------------------------------- Captured stdout call ----------------------------------------- running: /usr/bin/python3.7 -mpytest --basetemp=/var/tmp/portage/dev-python/pytest-mock-3.3.1/temp/pytest-of-portage/pytest-0/test_plain_stopall0/runpytest-0 in: /var/tmp/portage/dev-python/pytest-mock-3.3.1/temp/pytest-of-portage/pytest-0/test_plain_stopall0 ========================================= test session starts ========================================== platform linux -- Python 3.7.8, pytest-6.0.2, py-1.9.0, pluggy-0.13.1 rootdir: /var/tmp/portage/dev-python/pytest-mock-3.3.1/temp/pytest-of-portage/pytest-0/test_plain_stopall0 plugins: virtualenv-1.7.0, forked-1.3.0, xprocess-0.15.0, hypothesis-5.24.4, expect-1.1.0, shutil-1.7.0, xdist-2.1.0 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-3.3.1/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, testrun_uid, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, virtualenv, worker_id, workspace, xprocess > use 'pytest --fixtures [testpath]' for help on them. /var/tmp/portage/dev-python/pytest-mock-3.3.1/temp/pytest-of-portage/pytest-0/test_plain_stopall0/test_plain_stopall.py:6 ======================================= short test summary info ======================================== ERROR test_plain_stopall.py::test_get_random_number =========================================== 1 error in 0.06s =========================================== ___________________________ test_abort_patch_context_manager_with_stale_pyc ____________________________ testdir = def test_abort_patch_context_manager_with_stale_pyc(testdir: Any) -> None: """Ensure we don't trigger an error in case the frame where mocker.patch is being used doesn't have a 'context' (#169)""" import compileall py_fn = testdir.makepyfile( c=""" class C: x = 1 def check(mocker): mocker.patch.object(C, "x", 2) assert C.x == 2 """ ) testdir.syspathinsert() testdir.makepyfile( """ from c import check def test_foo(mocker): check(mocker) """ ) result = testdir.runpytest() > result.assert_outcomes(passed=1) E AssertionError /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py:866: AssertionError ----------------------------------------- Captured stdout call ----------------------------------------- ========================================= test session starts ========================================== platform linux -- Python 3.7.8, pytest-6.0.2, py-1.9.0, pluggy-0.13.1 rootdir: /var/tmp/portage/dev-python/pytest-mock-3.3.1/temp/pytest-of-portage/pytest-0/test_abort_patch_context_manager_with_stale_pyc0 plugins: virtualenv-1.7.0, forked-1.3.0, xprocess-0.15.0, hypothesis-5.24.4, expect-1.1.0, shutil-1.7.0, xdist-2.1.0 collected 1 item test_abort_patch_context_manager_with_stale_pyc.py E [100%] ================================================ ERRORS ================================================ ______________________________________ ERROR at setup of test_foo ______________________________________ file /var/tmp/portage/dev-python/pytest-mock-3.3.1/temp/pytest-of-portage/pytest-0/test_abort_patch_context_manager_with_stale_pyc0/test_abort_patch_context_manager_with_stale_pyc.py, line 2 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, testrun_uid, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, virtualenv, worker_id, workspace, xprocess > use 'pytest --fixtures [testpath]' for help on them. /var/tmp/portage/dev-python/pytest-mock-3.3.1/temp/pytest-of-portage/pytest-0/test_abort_patch_context_manager_with_stale_pyc0/test_abort_patch_context_manager_with_stale_pyc.py:2 =========================================== warnings summary =========================================== /usr/lib/python3.7/site-packages/_pytest/config/__init__.py:1040 /usr/lib/python3.7/site-packages/_pytest/config/__init__.py:1040: PytestAssertRewriteWarning: Module already imported so cannot be rewritten: pytest_virtualenv self._mark_plugins_for_rewrite(hook) /usr/lib/python3.7/site-packages/_pytest/config/__init__.py:1040 /usr/lib/python3.7/site-packages/_pytest/config/__init__.py:1040: PytestAssertRewriteWarning: Module already imported so cannot be rewritten: pytest_xprocess self._mark_plugins_for_rewrite(hook) /usr/lib/python3.7/site-packages/_pytest/config/__init__.py:1040 /usr/lib/python3.7/site-packages/_pytest/config/__init__.py:1040: PytestAssertRewriteWarning: Module already imported so cannot be rewritten: xprocess self._mark_plugins_for_rewrite(hook) /usr/lib/python3.7/site-packages/_pytest/config/__init__.py:1040 /usr/lib/python3.7/site-packages/_pytest/config/__init__.py:1040: PytestAssertRewriteWarning: Module already imported so cannot be rewritten: pytest_expect self._mark_plugins_for_rewrite(hook) /usr/lib/python3.7/site-packages/_pytest/config/__init__.py:1040 /usr/lib/python3.7/site-packages/_pytest/config/__init__.py:1040: PytestAssertRewriteWarning: Module already imported so cannot be rewritten: pytest_shutil self._mark_plugins_for_rewrite(hook) -- Docs: https://docs.pytest.org/en/stable/warnings.html ======================================= short test summary info ======================================== ERROR test_abort_patch_context_manager_with_stale_pyc.py::test_foo ===================================== 5 warnings, 1 error in 0.04s ===================================== ______________________________________ test_used_with_class_scope ______________________________________ testdir = def test_used_with_class_scope(testdir: Any) -> None: testdir.makepyfile( """ import pytest import random import unittest def get_random_number(): return random.randint(0, 1) @pytest.fixture(autouse=True, scope="class") def randint_mock(class_mocker): return class_mocker.patch("random.randint", lambda x, y: 5) class TestGetRandomNumber(unittest.TestCase): def test_get_random_number(self): assert get_random_number() == 5 """ ) result = testdir.runpytest_subprocess() assert "AssertionError" not in result.stderr.str() > result.stdout.fnmatch_lines("* 1 passed in *") E Failed: nomatch: '* 1 passed in *' E and: '========================================= test session starts ==========================================' E and: 'platform linux -- Python 3.7.8, pytest-6.0.2, py-1.9.0, pluggy-0.13.1' E and: 'rootdir: /var/tmp/portage/dev-python/pytest-mock-3.3.1/temp/pytest-of-portage/pytest-0/test_used_with_class_scope0' E and: 'plugins: virtualenv-1.7.0, forked-1.3.0, xprocess-0.15.0, hypothesis-5.24.4, expect-1.1.0, shutil-1.7.0, xdist-2.1.0' E and: 'collected 1 item' E and: '' E and: 'test_used_with_class_scope.py E [100%]' E and: '' E and: '================================================ ERRORS ================================================' E and: '_____________________ ERROR at setup of TestGetRandomNumber.test_get_random_number _____________________' E and: 'file /var/tmp/portage/dev-python/pytest-mock-3.3.1/temp/pytest-of-portage/pytest-0/test_used_with_class_scope0/test_used_with_class_scope.py, line 13' E and: ' def test_get_random_number(self):' E and: 'file /var/tmp/portage/dev-python/pytest-mock-3.3.1/temp/pytest-of-portage/pytest-0/test_used_with_class_scope0/test_used_with_class_scope.py, line 8' E and: ' @pytest.fixture(autouse=True, scope="class")' E and: ' def randint_mock(class_mocker):' E and: "E fixture 'class_mocker' not found" E and: '> available fixtures: _UnitTestCase__pytest_class_setup, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, randint_mock, record_property, record_testsuite_property, record_xml_attribute, recwarn, testrun_uid, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, virtualenv, worker_id, workspace, xprocess' E and: "> use 'pytest --fixtures [testpath]' for help on them." E and: '' E and: '/var/tmp/portage/dev-python/pytest-mock-3.3.1/temp/pytest-of-portage/pytest-0/test_used_with_class_scope0/test_used_with_class_scope.py:8' E and: '======================================= short test summary info ========================================' E and: 'ERROR test_used_with_class_scope.py::TestGetRandomNumber::test_get_random_number' E and: '=========================================== 1 error in 0.06s ===========================================' E remains unmatched: '* 1 passed in *' /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py:899: Failed ----------------------------------------- Captured stdout call ----------------------------------------- running: /usr/bin/python3.7 -mpytest --basetemp=/var/tmp/portage/dev-python/pytest-mock-3.3.1/temp/pytest-of-portage/pytest-0/test_used_with_class_scope0/runpytest-0 in: /var/tmp/portage/dev-python/pytest-mock-3.3.1/temp/pytest-of-portage/pytest-0/test_used_with_class_scope0 ========================================= test session starts ========================================== platform linux -- Python 3.7.8, pytest-6.0.2, py-1.9.0, pluggy-0.13.1 rootdir: /var/tmp/portage/dev-python/pytest-mock-3.3.1/temp/pytest-of-portage/pytest-0/test_used_with_class_scope0 plugins: virtualenv-1.7.0, forked-1.3.0, xprocess-0.15.0, hypothesis-5.24.4, expect-1.1.0, shutil-1.7.0, xdist-2.1.0 collected 1 item test_used_with_class_scope.py E [100%] ================================================ ERRORS ================================================ _____________________ ERROR at setup of TestGetRandomNumber.test_get_random_number _____________________ file /var/tmp/portage/dev-python/pytest-mock-3.3.1/temp/pytest-of-portage/pytest-0/test_used_with_class_scope0/test_used_with_class_scope.py, line 13 def test_get_random_number(self): file /var/tmp/portage/dev-python/pytest-mock-3.3.1/temp/pytest-of-portage/pytest-0/test_used_with_class_scope0/test_used_with_class_scope.py, line 8 @pytest.fixture(autouse=True, scope="class") def randint_mock(class_mocker): E fixture 'class_mocker' not found > available fixtures: _UnitTestCase__pytest_class_setup, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, randint_mock, record_property, record_testsuite_property, record_xml_attribute, recwarn, testrun_uid, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, virtualenv, worker_id, workspace, xprocess > use 'pytest --fixtures [testpath]' for help on them. /var/tmp/portage/dev-python/pytest-mock-3.3.1/temp/pytest-of-portage/pytest-0/test_used_with_class_scope0/test_used_with_class_scope.py:8 ======================================= short test summary info ======================================== ERROR test_used_with_class_scope.py::TestGetRandomNumber::test_get_random_number =========================================== 1 error in 0.06s =========================================== _____________________________________ test_used_with_module_scope ______________________________________ testdir = def test_used_with_module_scope(testdir: Any) -> None: testdir.makepyfile( """ import pytest import random def get_random_number(): return random.randint(0, 1) @pytest.fixture(autouse=True, scope="module") def randint_mock(module_mocker): return module_mocker.patch("random.randint", lambda x, y: 5) def test_get_random_number(): assert get_random_number() == 5 """ ) result = testdir.runpytest_subprocess() assert "AssertionError" not in result.stderr.str() > result.stdout.fnmatch_lines("* 1 passed in *") E Failed: nomatch: '* 1 passed in *' E and: '========================================= test session starts ==========================================' E and: 'platform linux -- Python 3.7.8, pytest-6.0.2, py-1.9.0, pluggy-0.13.1' E and: 'rootdir: /var/tmp/portage/dev-python/pytest-mock-3.3.1/temp/pytest-of-portage/pytest-0/test_used_with_module_scope0' E and: 'plugins: virtualenv-1.7.0, forked-1.3.0, xprocess-0.15.0, hypothesis-5.24.4, expect-1.1.0, shutil-1.7.0, xdist-2.1.0' E and: 'collected 1 item' E and: '' E and: 'test_used_with_module_scope.py E [100%]' E and: '' E and: '================================================ ERRORS ================================================' E and: '_______________________________ ERROR at setup of test_get_random_number _______________________________' E and: 'file /var/tmp/portage/dev-python/pytest-mock-3.3.1/temp/pytest-of-portage/pytest-0/test_used_with_module_scope0/test_used_with_module_scope.py, line 11' E and: ' def test_get_random_number():' E and: 'file /var/tmp/portage/dev-python/pytest-mock-3.3.1/temp/pytest-of-portage/pytest-0/test_used_with_module_scope0/test_used_with_module_scope.py, line 7' E and: ' @pytest.fixture(autouse=True, scope="module")' E and: ' def randint_mock(module_mocker):' E and: "E fixture 'module_mocker' not found" E and: '> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, randint_mock, record_property, record_testsuite_property, record_xml_attribute, recwarn, testrun_uid, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, virtualenv, worker_id, workspace, xprocess' E and: "> use 'pytest --fixtures [testpath]' for help on them." E and: '' E and: '/var/tmp/portage/dev-python/pytest-mock-3.3.1/temp/pytest-of-portage/pytest-0/test_used_with_module_scope0/test_used_with_module_scope.py:7' E and: '======================================= short test summary info ========================================' E and: 'ERROR test_used_with_module_scope.py::test_get_random_number' E and: '=========================================== 1 error in 0.06s ===========================================' E remains unmatched: '* 1 passed in *' /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py:921: Failed ----------------------------------------- Captured stdout call ----------------------------------------- running: /usr/bin/python3.7 -mpytest --basetemp=/var/tmp/portage/dev-python/pytest-mock-3.3.1/temp/pytest-of-portage/pytest-0/test_used_with_module_scope0/runpytest-0 in: /var/tmp/portage/dev-python/pytest-mock-3.3.1/temp/pytest-of-portage/pytest-0/test_used_with_module_scope0 ========================================= test session starts ========================================== platform linux -- Python 3.7.8, pytest-6.0.2, py-1.9.0, pluggy-0.13.1 rootdir: /var/tmp/portage/dev-python/pytest-mock-3.3.1/temp/pytest-of-portage/pytest-0/test_used_with_module_scope0 plugins: virtualenv-1.7.0, forked-1.3.0, xprocess-0.15.0, hypothesis-5.24.4, expect-1.1.0, shutil-1.7.0, xdist-2.1.0 collected 1 item test_used_with_module_scope.py E [100%] ================================================ ERRORS ================================================ _______________________________ ERROR at setup of test_get_random_number _______________________________ file /var/tmp/portage/dev-python/pytest-mock-3.3.1/temp/pytest-of-portage/pytest-0/test_used_with_module_scope0/test_used_with_module_scope.py, line 11 def test_get_random_number(): file /var/tmp/portage/dev-python/pytest-mock-3.3.1/temp/pytest-of-portage/pytest-0/test_used_with_module_scope0/test_used_with_module_scope.py, line 7 @pytest.fixture(autouse=True, scope="module") def randint_mock(module_mocker): E fixture 'module_mocker' not found > available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, randint_mock, record_property, record_testsuite_property, record_xml_attribute, recwarn, testrun_uid, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, virtualenv, worker_id, workspace, xprocess > use 'pytest --fixtures [testpath]' for help on them. /var/tmp/portage/dev-python/pytest-mock-3.3.1/temp/pytest-of-portage/pytest-0/test_used_with_module_scope0/test_used_with_module_scope.py:7 ======================================= short test summary info ======================================== ERROR test_used_with_module_scope.py::test_get_random_number =========================================== 1 error in 0.06s =========================================== _____________________________________ test_used_with_package_scope _____________________________________ testdir = def test_used_with_package_scope(testdir: Any) -> None: """...""" testdir.makepyfile( """ import pytest import random def get_random_number(): return random.randint(0, 1) @pytest.fixture(autouse=True, scope="package") def randint_mock(package_mocker): return package_mocker.patch("random.randint", lambda x, y: 5) def test_get_random_number(): assert get_random_number() == 5 """ ) result = testdir.runpytest_subprocess() assert "AssertionError" not in result.stderr.str() > result.stdout.fnmatch_lines("* 1 passed in *") E Failed: nomatch: '* 1 passed in *' E and: '========================================= test session starts ==========================================' E and: 'platform linux -- Python 3.7.8, pytest-6.0.2, py-1.9.0, pluggy-0.13.1' E and: 'rootdir: /var/tmp/portage/dev-python/pytest-mock-3.3.1/temp/pytest-of-portage/pytest-0/test_used_with_package_scope0' E and: 'plugins: virtualenv-1.7.0, forked-1.3.0, xprocess-0.15.0, hypothesis-5.24.4, expect-1.1.0, shutil-1.7.0, xdist-2.1.0' E and: 'collected 1 item' E and: '' E and: 'test_used_with_package_scope.py E [100%]' E and: '' E and: '================================================ ERRORS ================================================' E and: '_______________________________ ERROR at setup of test_get_random_number _______________________________' E and: 'file /var/tmp/portage/dev-python/pytest-mock-3.3.1/temp/pytest-of-portage/pytest-0/test_used_with_package_scope0/test_used_with_package_scope.py, line 11' E and: ' def test_get_random_number():' E and: 'file /var/tmp/portage/dev-python/pytest-mock-3.3.1/temp/pytest-of-portage/pytest-0/test_used_with_package_scope0/test_used_with_package_scope.py, line 7' E and: ' @pytest.fixture(autouse=True, scope="package")' E and: ' def randint_mock(package_mocker):' E and: "E fixture 'package_mocker' not found" E and: '> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, randint_mock, record_property, record_testsuite_property, record_xml_attribute, recwarn, testrun_uid, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, virtualenv, worker_id, workspace, xprocess' E and: "> use 'pytest --fixtures [testpath]' for help on them." E and: '' E and: '/var/tmp/portage/dev-python/pytest-mock-3.3.1/temp/pytest-of-portage/pytest-0/test_used_with_package_scope0/test_used_with_package_scope.py:7' E and: '======================================= short test summary info ========================================' E and: 'ERROR test_used_with_package_scope.py::test_get_random_number' E and: '=========================================== 1 error in 0.06s ===========================================' E remains unmatched: '* 1 passed in *' /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py:944: Failed ----------------------------------------- Captured stdout call ----------------------------------------- running: /usr/bin/python3.7 -mpytest --basetemp=/var/tmp/portage/dev-python/pytest-mock-3.3.1/temp/pytest-of-portage/pytest-0/test_used_with_package_scope0/runpytest-0 in: /var/tmp/portage/dev-python/pytest-mock-3.3.1/temp/pytest-of-portage/pytest-0/test_used_with_package_scope0 ========================================= test session starts ========================================== platform linux -- Python 3.7.8, pytest-6.0.2, py-1.9.0, pluggy-0.13.1 rootdir: /var/tmp/portage/dev-python/pytest-mock-3.3.1/temp/pytest-of-portage/pytest-0/test_used_with_package_scope0 plugins: virtualenv-1.7.0, forked-1.3.0, xprocess-0.15.0, hypothesis-5.24.4, expect-1.1.0, shutil-1.7.0, xdist-2.1.0 collected 1 item test_used_with_package_scope.py E [100%] ================================================ ERRORS ================================================ _______________________________ ERROR at setup of test_get_random_number _______________________________ file /var/tmp/portage/dev-python/pytest-mock-3.3.1/temp/pytest-of-portage/pytest-0/test_used_with_package_scope0/test_used_with_package_scope.py, line 11 def test_get_random_number(): file /var/tmp/portage/dev-python/pytest-mock-3.3.1/temp/pytest-of-portage/pytest-0/test_used_with_package_scope0/test_used_with_package_scope.py, line 7 @pytest.fixture(autouse=True, scope="package") def randint_mock(package_mocker): E fixture 'package_mocker' not found > available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, randint_mock, record_property, record_testsuite_property, record_xml_attribute, recwarn, testrun_uid, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, virtualenv, worker_id, workspace, xprocess > use 'pytest --fixtures [testpath]' for help on them. /var/tmp/portage/dev-python/pytest-mock-3.3.1/temp/pytest-of-portage/pytest-0/test_used_with_package_scope0/test_used_with_package_scope.py:7 ======================================= short test summary info ======================================== ERROR test_used_with_package_scope.py::test_get_random_number =========================================== 1 error in 0.06s =========================================== _____________________________________ test_used_with_session_scope _____________________________________ testdir = def test_used_with_session_scope(testdir: Any) -> None: """...""" testdir.makepyfile( """ import pytest import random def get_random_number(): return random.randint(0, 1) @pytest.fixture(autouse=True, scope="session") def randint_mock(session_mocker): return session_mocker.patch("random.randint", lambda x, y: 5) def test_get_random_number(): assert get_random_number() == 5 """ ) result = testdir.runpytest_subprocess() assert "AssertionError" not in result.stderr.str() > result.stdout.fnmatch_lines("* 1 passed in *") E Failed: nomatch: '* 1 passed in *' E and: '========================================= test session starts ==========================================' E and: 'platform linux -- Python 3.7.8, pytest-6.0.2, py-1.9.0, pluggy-0.13.1' E and: 'rootdir: /var/tmp/portage/dev-python/pytest-mock-3.3.1/temp/pytest-of-portage/pytest-0/test_used_with_session_scope0' E and: 'plugins: virtualenv-1.7.0, forked-1.3.0, xprocess-0.15.0, hypothesis-5.24.4, expect-1.1.0, shutil-1.7.0, xdist-2.1.0' E and: 'collected 1 item' E and: '' E and: 'test_used_with_session_scope.py E [100%]' E and: '' E and: '================================================ ERRORS ================================================' E and: '_______________________________ ERROR at setup of test_get_random_number _______________________________' E and: 'file /var/tmp/portage/dev-python/pytest-mock-3.3.1/temp/pytest-of-portage/pytest-0/test_used_with_session_scope0/test_used_with_session_scope.py, line 11' E and: ' def test_get_random_number():' E and: 'file /var/tmp/portage/dev-python/pytest-mock-3.3.1/temp/pytest-of-portage/pytest-0/test_used_with_session_scope0/test_used_with_session_scope.py, line 7' E and: ' @pytest.fixture(autouse=True, scope="session")' E and: ' def randint_mock(session_mocker):' E and: "E fixture 'session_mocker' not found" E and: '> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, randint_mock, record_property, record_testsuite_property, record_xml_attribute, recwarn, testrun_uid, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, virtualenv, worker_id, workspace, xprocess' E and: "> use 'pytest --fixtures [testpath]' for help on them." E and: '' E and: '/var/tmp/portage/dev-python/pytest-mock-3.3.1/temp/pytest-of-portage/pytest-0/test_used_with_session_scope0/test_used_with_session_scope.py:7' E and: '======================================= short test summary info ========================================' E and: 'ERROR test_used_with_session_scope.py::test_get_random_number' E and: '=========================================== 1 error in 0.06s ===========================================' E remains unmatched: '* 1 passed in *' /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py:967: Failed ----------------------------------------- Captured stdout call ----------------------------------------- running: /usr/bin/python3.7 -mpytest --basetemp=/var/tmp/portage/dev-python/pytest-mock-3.3.1/temp/pytest-of-portage/pytest-0/test_used_with_session_scope0/runpytest-0 in: /var/tmp/portage/dev-python/pytest-mock-3.3.1/temp/pytest-of-portage/pytest-0/test_used_with_session_scope0 ========================================= test session starts ========================================== platform linux -- Python 3.7.8, pytest-6.0.2, py-1.9.0, pluggy-0.13.1 rootdir: /var/tmp/portage/dev-python/pytest-mock-3.3.1/temp/pytest-of-portage/pytest-0/test_used_with_session_scope0 plugins: virtualenv-1.7.0, forked-1.3.0, xprocess-0.15.0, hypothesis-5.24.4, expect-1.1.0, shutil-1.7.0, xdist-2.1.0 collected 1 item test_used_with_session_scope.py E [100%] ================================================ ERRORS ================================================ _______________________________ ERROR at setup of test_get_random_number _______________________________ file /var/tmp/portage/dev-python/pytest-mock-3.3.1/temp/pytest-of-portage/pytest-0/test_used_with_session_scope0/test_used_with_session_scope.py, line 11 def test_get_random_number(): file /var/tmp/portage/dev-python/pytest-mock-3.3.1/temp/pytest-of-portage/pytest-0/test_used_with_session_scope0/test_used_with_session_scope.py, line 7 @pytest.fixture(autouse=True, scope="session") def randint_mock(session_mocker): E fixture 'session_mocker' not found > available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, randint_mock, record_property, record_testsuite_property, record_xml_attribute, recwarn, testrun_uid, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, virtualenv, worker_id, workspace, xprocess > use 'pytest --fixtures [testpath]' for help on them. /var/tmp/portage/dev-python/pytest-mock-3.3.1/temp/pytest-of-portage/pytest-0/test_used_with_session_scope0/test_used_with_session_scope.py:7 ======================================= short test summary info ======================================== ERROR test_used_with_session_scope.py::test_get_random_number =========================================== 1 error in 0.06s =========================================== =========================================== warnings summary =========================================== tests/test_pytest_mock.py:416 /var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1/tests/test_pytest_mock.py:416: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/mark.html @pytest.mark.asyncio -- Docs: https://docs.pytest.org/en/stable/warnings.html ======================================= short test summary info ======================================== SKIPPED [3] tests/test_pytest_mock.py:33: this test needs assertion rewrite to work but current option is "plain" SKIPPED [1] tests/test_pytest_mock.py:708: AsyncMock is present on 3.8 and above 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::TestMockerStub::test_failure_message_with_no_name ERROR tests/test_pytest_mock.py::TestMockerStub::test_failure_message_with_name[None] ERROR tests/test_pytest_mock.py::TestMockerStub::test_failure_message_with_name[] ERROR tests/test_pytest_mock.py::TestMockerStub::test_failure_message_with_name[f] ERROR tests/test_pytest_mock.py::TestMockerStub::test_failure_message_with_name[The Castle of aaarrrrggh] ERROR tests/test_pytest_mock.py::test_instance_method_spy ERROR tests/test_pytest_mock.py::test_instance_method_spy_exception ERROR tests/test_pytest_mock.py::test_spy_reset 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_subclass_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_static_method_subclass_spy ERROR tests/test_pytest_mock.py::test_callable_like_spy ERROR tests/test_pytest_mock.py::test_instance_async_method_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_patch_object_context_manager ERROR tests/test_pytest_mock.py::test_abort_patch_context_manager ERROR tests/test_pytest_mock.py::test_context_manager_patch_example 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 - AssertionError FAILED tests/test_pytest_mock.py::test_plain_stopall - Failed: nomatch: '* 1 passed in *' FAILED tests/test_pytest_mock.py::test_abort_patch_context_manager_with_stale_pyc - AssertionError FAILED tests/test_pytest_mock.py::test_used_with_class_scope - Failed: nomatch: '* 1 passed in *' FAILED tests/test_pytest_mock.py::test_used_with_module_scope - Failed: nomatch: '* 1 passed in *' FAILED tests/test_pytest_mock.py::test_used_with_package_scope - Failed: nomatch: '* 1 passed in *' FAILED tests/test_pytest_mock.py::test_used_with_session_scope - Failed: nomatch: '* 1 passed in *' ==================== 16 failed, 3 passed, 4 skipped, 1 warning, 39 errors in 10.57s ==================== * ERROR: dev-python/pytest-mock-3.3.1::gentoo failed (test phase): * Tests fail with python3.7 * * Call stack: * ebuild.sh, line 125: Called src_test * environment, line 2930: Called distutils-r1_src_test * environment, line 1232: Called _distutils-r1_run_foreach_impl 'python_test' * environment, line 448: Called python_foreach_impl 'distutils-r1_run_phase' 'python_test' * environment, line 2535: Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' * environment, line 2014: Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' * environment, line 2012: Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'python_test' * environment, line 805: Called distutils-r1_run_phase 'python_test' * environment, line 1169: Called python_test * environment, line 2887: Called die * The specific snippet of code: * pytest --assert=plain -vv || die "Tests fail with ${EPYTHON}" * * If you need support, post the output of `emerge --info '=dev-python/pytest-mock-3.3.1::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-python/pytest-mock-3.3.1::gentoo'`. * The complete build log is located at '/var/log/portage/build/dev-python/pytest-mock-3.3.1:20201124-224337.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-python/pytest-mock-3.3.1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-python/pytest-mock-3.3.1/temp/environment'. * Working directory: '/var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1' * S: '/var/tmp/portage/dev-python/pytest-mock-3.3.1/work/pytest-mock-3.3.1'