Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 739309 Details for
Bug 813061
dev-python/pytest-mock-3.6.1 fails test tests/test_pytest_mock.py::test_monkeypatch_no_terminal
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
dev-python:pytest-mock-3.6.1:20210914-150633.log
dev-python:pytest-mock-3.6.1:20210914-150633.log (text/x-log), 16.07 KB, created by
Jonathan Lovelace
on 2021-09-14 16:21:56 UTC
(
hide
)
Description:
dev-python:pytest-mock-3.6.1:20210914-150633.log
Filename:
MIME Type:
Creator:
Jonathan Lovelace
Created:
2021-09-14 16:21:56 UTC
Size:
16.07 KB
patch
obsolete
> * Package: dev-python/pytest-mock-3.6.1 > * Repository: gentoo > * Maintainer: zmedico@gentoo.org python@gentoo.org > * USE: abi_x86_64 amd64 elibc_glibc kernel_linux python_targets_python3_9 test userland_GNU > * FEATURES: fakeroot network-sandbox preserve-libs sandbox test userpriv usersandbox > * python3_9: running distutils-r1_run_phase distutils-r1_python_compile >python3.9 setup.py build -j 3 >running build >running build_py >creating /var/tmp/portage/dev-python/pytest-mock-3.6.1/work/pytest-mock-3.6.1-python3_9/lib/pytest_mock >copying src/pytest_mock/__init__.py -> /var/tmp/portage/dev-python/pytest-mock-3.6.1/work/pytest-mock-3.6.1-python3_9/lib/pytest_mock >copying src/pytest_mock/plugin.py -> /var/tmp/portage/dev-python/pytest-mock-3.6.1/work/pytest-mock-3.6.1-python3_9/lib/pytest_mock >copying src/pytest_mock/_util.py -> /var/tmp/portage/dev-python/pytest-mock-3.6.1/work/pytest-mock-3.6.1-python3_9/lib/pytest_mock >copying src/pytest_mock/_version.py -> /var/tmp/portage/dev-python/pytest-mock-3.6.1/work/pytest-mock-3.6.1-python3_9/lib/pytest_mock >copying src/pytest_mock/py.typed -> /var/tmp/portage/dev-python/pytest-mock-3.6.1/work/pytest-mock-3.6.1-python3_9/lib/pytest_mock >warning: build_py: byte-compiling is disabled, skipping. > > * python3_9: running distutils-r1_run_phase python_test >python3.9 setup.py install --root=/var/tmp/portage/dev-python/pytest-mock-3.6.1/work/pytest-mock-3.6.1-python3_9/test --install-lib=lib --install-scripts=scripts >running install >running build >running build_py >copying src/pytest_mock/_version.py -> /var/tmp/portage/dev-python/pytest-mock-3.6.1/work/pytest-mock-3.6.1-python3_9/lib/pytest_mock >warning: build_py: byte-compiling is disabled, skipping. > >running install_lib >creating /var/tmp/portage/dev-python/pytest-mock-3.6.1/work/pytest-mock-3.6.1-python3_9/test >creating /var/tmp/portage/dev-python/pytest-mock-3.6.1/work/pytest-mock-3.6.1-python3_9/test/lib >creating /var/tmp/portage/dev-python/pytest-mock-3.6.1/work/pytest-mock-3.6.1-python3_9/test/lib/pytest_mock >copying /var/tmp/portage/dev-python/pytest-mock-3.6.1/work/pytest-mock-3.6.1-python3_9/lib/pytest_mock/__init__.py -> /var/tmp/portage/dev-python/pytest-mock-3.6.1/work/pytest-mock-3.6.1-python3_9/test/lib/pytest_mock >copying /var/tmp/portage/dev-python/pytest-mock-3.6.1/work/pytest-mock-3.6.1-python3_9/lib/pytest_mock/py.typed -> /var/tmp/portage/dev-python/pytest-mock-3.6.1/work/pytest-mock-3.6.1-python3_9/test/lib/pytest_mock >copying /var/tmp/portage/dev-python/pytest-mock-3.6.1/work/pytest-mock-3.6.1-python3_9/lib/pytest_mock/plugin.py -> /var/tmp/portage/dev-python/pytest-mock-3.6.1/work/pytest-mock-3.6.1-python3_9/test/lib/pytest_mock >copying /var/tmp/portage/dev-python/pytest-mock-3.6.1/work/pytest-mock-3.6.1-python3_9/lib/pytest_mock/_util.py -> /var/tmp/portage/dev-python/pytest-mock-3.6.1/work/pytest-mock-3.6.1-python3_9/test/lib/pytest_mock >copying /var/tmp/portage/dev-python/pytest-mock-3.6.1/work/pytest-mock-3.6.1-python3_9/lib/pytest_mock/_version.py -> /var/tmp/portage/dev-python/pytest-mock-3.6.1/work/pytest-mock-3.6.1-python3_9/test/lib/pytest_mock >warning: install_lib: byte-compiling is disabled, skipping. > >running install_egg_info >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' >adding license file 'LICENSE' >writing manifest file 'src/pytest_mock.egg-info/SOURCES.txt' >Copying src/pytest_mock.egg-info to /var/tmp/portage/dev-python/pytest-mock-3.6.1/work/pytest-mock-3.6.1-python3_9/test/lib/pytest_mock-3.6.1-py3.9.egg-info >running install_scripts >python3.9 -m pytest -vv -ra -l -Wdefault --assert=plain --deselect tests/test_pytest_mock.py::test_standalone_mock >======================================= test session starts ======================================== >platform linux -- Python 3.9.6, pytest-6.2.4, py-1.10.0, pluggy-0.13.1 -- /usr/bin/python3.9 >cachedir: .pytest_cache >benchmark: 3.4.1 (defaults: timer=time.perf_counter disable_gc=False min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 warmup=False warmup_iterations=100000) >hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('/var/tmp/portage/dev-python/pytest-mock-3.6.1/work/pytest-mock-3.6.1/.hypothesis/examples') >rootdir: /var/tmp/portage/dev-python/pytest-mock-3.6.1/work/pytest-mock-3.6.1, configfile: tox.ini >plugins: mock-3.6.1, pkgcore-0.12.7, timeout-1.4.2, freezegun-0.4.2, localserver-0.5.0, subtests-0.5.0, benchmark-3.4.1, asyncio-0.15.1, cov-2.12.1, xdist-2.3.0, xprocess-0.18.1, httpbin-1.0.0, shutil-1.7.0, django-4.4.0, aspectlib-1.5.2, virtualenv-1.7.0, betamax-0.8.1, hypothesis-6.14.5, forked-1.3.0, expect-1.1.0, codeblocks-0.11.2, pyfakefs-4.5.0 >collecting ... collected 72 items / 1 deselected / 71 selected > >tests/test_pytest_mock.py::test_mock_patches[mock_using_patch_object] PASSED [ 1%] >tests/test_pytest_mock.py::test_mock_patches[mock_using_patch] PASSED [ 2%] >tests/test_pytest_mock.py::test_mock_patches[mock_using_patch_multiple] PASSED [ 4%] >tests/test_pytest_mock.py::test_mock_patch_dict PASSED [ 5%] >tests/test_pytest_mock.py::test_mock_patch_dict_resetall PASSED [ 7%] >tests/test_pytest_mock.py::test_mocker_aliases[ANY] PASSED [ 8%] >tests/test_pytest_mock.py::test_mocker_aliases[call] PASSED [ 9%] >tests/test_pytest_mock.py::test_mocker_aliases[create_autospec] PASSED [ 11%] >tests/test_pytest_mock.py::test_mocker_aliases[MagicMock] PASSED [ 12%] >tests/test_pytest_mock.py::test_mocker_aliases[Mock] PASSED [ 14%] >tests/test_pytest_mock.py::test_mocker_aliases[mock_open] PASSED [ 15%] >tests/test_pytest_mock.py::test_mocker_aliases[NonCallableMock] PASSED [ 16%] >tests/test_pytest_mock.py::test_mocker_aliases[PropertyMock] PASSED [ 18%] >tests/test_pytest_mock.py::test_mocker_aliases[sentinel] PASSED [ 19%] >tests/test_pytest_mock.py::test_mocker_aliases[seal] PASSED [ 21%] >tests/test_pytest_mock.py::test_mocker_resetall PASSED [ 22%] >tests/test_pytest_mock.py::TestMockerStub::test_call PASSED [ 23%] >tests/test_pytest_mock.py::TestMockerStub::test_repr_with_no_name PASSED [ 25%] >tests/test_pytest_mock.py::TestMockerStub::test_repr_with_name PASSED [ 26%] >tests/test_pytest_mock.py::TestMockerStub::test_failure_message_with_no_name PASSED [ 28%] >tests/test_pytest_mock.py::TestMockerStub::test_failure_message_with_name[None] PASSED [ 29%] >tests/test_pytest_mock.py::TestMockerStub::test_failure_message_with_name[] PASSED [ 30%] >tests/test_pytest_mock.py::TestMockerStub::test_failure_message_with_name[f] PASSED [ 32%] >tests/test_pytest_mock.py::TestMockerStub::test_failure_message_with_name[The Castle of aaarrrrggh] PASSED [ 33%] >tests/test_pytest_mock.py::test_instance_method_spy PASSED [ 35%] >tests/test_pytest_mock.py::test_instance_method_spy_exception[BaseException] PASSED [ 36%] >tests/test_pytest_mock.py::test_instance_method_spy_exception[Exception] PASSED [ 38%] >tests/test_pytest_mock.py::test_instance_method_spy_exception[GeneratorExit] PASSED [ 39%] >tests/test_pytest_mock.py::test_instance_method_spy_exception[KeyboardInterrupt] PASSED [ 40%] >tests/test_pytest_mock.py::test_instance_method_spy_exception[RuntimeError] PASSED [ 42%] >tests/test_pytest_mock.py::test_instance_method_spy_exception[SystemExit] PASSED [ 43%] >tests/test_pytest_mock.py::test_instance_method_spy_autospec_true PASSED [ 45%] >tests/test_pytest_mock.py::test_spy_reset PASSED [ 46%] >tests/test_pytest_mock.py::test_instance_method_by_class_spy PASSED [ 47%] >tests/test_pytest_mock.py::test_instance_method_by_subclass_spy PASSED [ 49%] >tests/test_pytest_mock.py::test_class_method_spy PASSED [ 50%] >tests/test_pytest_mock.py::test_class_method_spy_autospec_false PASSED [ 52%] >tests/test_pytest_mock.py::test_class_method_subclass_spy PASSED [ 53%] >tests/test_pytest_mock.py::test_class_method_with_metaclass_spy PASSED [ 54%] >tests/test_pytest_mock.py::test_static_method_spy PASSED [ 56%] >tests/test_pytest_mock.py::test_static_method_subclass_spy PASSED [ 57%] >tests/test_pytest_mock.py::test_callable_like_spy PASSED [ 59%] >tests/test_pytest_mock.py::test_instance_async_method_spy PASSED [ 60%] >tests/test_pytest_mock.py::test_assert_not_called_wrapper PASSED [ 61%] >tests/test_pytest_mock.py::test_assert_called_with_wrapper PASSED [ 63%] >tests/test_pytest_mock.py::test_assert_called_once_with_wrapper PASSED [ 64%] >tests/test_pytest_mock.py::test_assert_called_once_wrapper PASSED [ 66%] >tests/test_pytest_mock.py::test_assert_called_wrapper PASSED [ 67%] >tests/test_pytest_mock.py::test_assert_called_args_with_introspection SKIPPED (this test...) [ 69%] >tests/test_pytest_mock.py::test_assert_called_kwargs_with_introspection SKIPPED (this te...) [ 70%] >tests/test_pytest_mock.py::test_assert_any_call_wrapper PASSED [ 71%] >tests/test_pytest_mock.py::test_assert_has_calls PASSED [ 73%] >tests/test_pytest_mock.py::test_monkeypatch_ini PASSED [ 74%] >tests/test_pytest_mock.py::test_parse_ini_boolean PASSED [ 76%] >tests/test_pytest_mock.py::test_patched_method_parameter_name PASSED [ 77%] >tests/test_pytest_mock.py::test_monkeypatch_native PASSED [ 78%] >tests/test_pytest_mock.py::test_monkeypatch_no_terminal FAILED [ 80%] >tests/test_pytest_mock.py::test_detailed_introspection SKIPPED (this test needs assertio...) [ 81%] >tests/test_pytest_mock.py::test_detailed_introspection_async SKIPPED (this test needs as...) [ 83%] >tests/test_pytest_mock.py::test_missing_introspection PASSED [ 84%] >tests/test_pytest_mock.py::test_assert_called_with_unicode_arguments PASSED [ 85%] >tests/test_pytest_mock.py::test_plain_stopall PASSED [ 87%] >tests/test_pytest_mock.py::test_warn_patch_object_context_manager PASSED [ 88%] >tests/test_pytest_mock.py::test_warn_patch_context_manager PASSED [ 90%] >tests/test_pytest_mock.py::test_context_manager_patch_example PASSED [ 91%] >tests/test_pytest_mock.py::test_patch_context_manager_with_context_manager PASSED [ 92%] >tests/test_pytest_mock.py::test_abort_patch_context_manager_with_stale_pyc PASSED [ 94%] >tests/test_pytest_mock.py::test_used_with_class_scope PASSED [ 95%] >tests/test_pytest_mock.py::test_used_with_module_scope PASSED [ 97%] >tests/test_pytest_mock.py::test_used_with_package_scope PASSED [ 98%] >tests/test_pytest_mock.py::test_used_with_session_scope PASSED [100%] > >============================================= FAILURES ============================================= >___________________________________ test_monkeypatch_no_terminal ___________________________________ > >testdir = <Testdir local('/var/tmp/portage/dev-python/pytest-mock-3.6.1/temp/pytest-of-portage/pytest-0/test_monkeypatch_no_terminal0')> > > def test_monkeypatch_no_terminal(testdir: Any) -> None: > """Don't crash without 'terminal' plugin.""" > 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("-p", "no:terminal", "-s") > assert result.ret == 1 >> assert result.stdout.lines == [] >E AssertionError > >result = <RunResult ret=ExitCode.TESTS_FAILED len(stdout.lines)=1 len(stderr.lines)=0 duration=2.19s> >testdir = <Testdir local('/var/tmp/portage/dev-python/pytest-mock-3.6.1/temp/pytest-of-portage/pytest-0/test_monkeypatch_no_terminal0')> > >/var/tmp/portage/dev-python/pytest-mock-3.6.1/work/pytest-mock-3.6.1/tests/test_pytest_mock.py:706: AssertionError >--------------------------------------- Captured stdout call --------------------------------------- >running: /usr/bin/python3.9 -mpytest --basetemp=/var/tmp/portage/dev-python/pytest-mock-3.6.1/temp/pytest-of-portage/pytest-0/test_monkeypatch_no_terminal0/runpytest-0 -p no:terminal -s > in: /var/tmp/portage/dev-python/pytest-mock-3.6.1/temp/pytest-of-portage/pytest-0/test_monkeypatch_no_terminal0 >pytest-xprocess reminder::Be sure to terminate the started process by running 'pytest --xkill' if you have not explicitly done so in your fixture with 'xprocess.getinfo(<process_name>).terminate()'. >===================================== short test summary info ====================================== >SKIPPED [4] tests/test_pytest_mock.py:38: this test needs assertion rewrite to work but current option is "plain" >FAILED tests/test_pytest_mock.py::test_monkeypatch_no_terminal - AssertionError >====================== 1 failed, 66 passed, 4 skipped, 1 deselected in 18.43s ====================== >pytest-xprocess reminder::Be sure to terminate the started process by running 'pytest --xkill' if you have not explicitly done so in your fixture with 'xprocess.getinfo(<process_name>).terminate()'. > * ERROR: dev-python/pytest-mock-3.6.1::gentoo failed (test phase): > * pytest failed with python3.9 > * > * Call stack: > * ebuild.sh, line 127: Called src_test > * environment, line 2918: Called distutils-r1_src_test > * environment, line 1235: Called _distutils-r1_run_foreach_impl 'python_test' > * environment, line 477: Called python_foreach_impl 'distutils-r1_run_phase' 'python_test' > * environment, line 2576: Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' > * environment, line 2086: Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' > * environment, line 2084: Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'python_test' > * environment, line 791: Called distutils-r1_run_phase 'python_test' > * environment, line 1174: Called python_test > * environment, line 2877: Called epytest '--assert=plain' '--deselect' 'tests/test_pytest_mock.py::test_standalone_mock' > * environment, line 1602: Called die > * The specific snippet of code: > * "${@}" || die -n "pytest failed with ${EPYTHON}"; > * > * If you need support, post the output of `emerge --info '=dev-python/pytest-mock-3.6.1::gentoo'`, > * the complete build log and the output of `emerge -pqv '=dev-python/pytest-mock-3.6.1::gentoo'`. > * The complete build log is located at '/var/log/portage/dev-python:pytest-mock-3.6.1:20210914-150633.log'. > * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-python/pytest-mock-3.6.1/temp/build.log'. > * The ebuild environment file is located at '/var/tmp/portage/dev-python/pytest-mock-3.6.1/temp/environment'. > * Working directory: '/var/tmp/portage/dev-python/pytest-mock-3.6.1/work/pytest-mock-3.6.1' > * S: '/var/tmp/portage/dev-python/pytest-mock-3.6.1/work/pytest-mock-3.6.1'
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 813061
: 739309 |
739312