Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 824341 Details for
Bug 877263
dev-python/pytest-cov-3.0.0-r2 fails test tests/test_pytest_cov.py::test_contexts
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
dev-python:pytest-cov-3.0.0-r2:20221015-152153.log
dev-python:pytest-cov-3.0.0-r2:20221015-152153.log (text/x-log), 46.29 KB, created by
Jonathan Lovelace
on 2022-10-16 00:16:39 UTC
(
hide
)
Description:
dev-python:pytest-cov-3.0.0-r2:20221015-152153.log
Filename:
MIME Type:
Creator:
Jonathan Lovelace
Created:
2022-10-16 00:16:39 UTC
Size:
46.29 KB
patch
obsolete
> * Package: dev-python/pytest-cov-3.0.0-r2:0 > * Repository: gentoo > * Maintainer: python@gentoo.org > * USE: abi_x86_64 amd64 elibc_glibc kernel_linux python_targets_python3_10 test userland_GNU > * FEATURES: distcc fakeroot network-sandbox preserve-libs sandbox test userpriv usersandbox > * Applying pytest-cov-3.0.0-coverage-6.2.patch ... > [ ok ] > * Build system packages: > * dev-python/gpep517 : 9 > * dev-python/installer : 0.5.1-r1 > * dev-python/setuptools : 65.3.0 > * dev-python/setuptools_scm : 7.0.5 > * dev-python/wheel : 0.37.1-r1 > * python3_10: running distutils-r1_run_phase distutils-r1_python_compile > * Building the wheel for pytest-cov-3.0.0 via setuptools.build_meta:__legacy__ >gpep517 build-wheel --backend setuptools.build_meta:__legacy__ --output-fd 3 --wheel-dir /var/tmp/portage/dev-python/pytest-cov-3.0.0-r2/work/pytest-cov-3.0.0-python3_10/wheel >2022-10-15 11:21:57,290 gpep517 INFO Building wheel via backend setuptools.build_meta:__legacy__ >running bdist_wheel >running build >running build_py >creating build >creating build/lib >creating build/lib/pytest_cov >copying src/pytest_cov/__init__.py -> build/lib/pytest_cov >copying src/pytest_cov/compat.py -> build/lib/pytest_cov >copying src/pytest_cov/embed.py -> build/lib/pytest_cov >copying src/pytest_cov/plugin.py -> build/lib/pytest_cov >copying src/pytest_cov/engine.py -> build/lib/pytest_cov >running egg_info >writing src/pytest_cov.egg-info/PKG-INFO >writing dependency_links to src/pytest_cov.egg-info/dependency_links.txt >writing entry points to src/pytest_cov.egg-info/entry_points.txt >writing requirements to src/pytest_cov.egg-info/requires.txt >writing top-level names to src/pytest_cov.egg-info/top_level.txt >2022-10-15 11:22:00,452 setuptools_scm.file_finder_git ERROR listing git files failed - pretending there aren't any >reading manifest file 'src/pytest_cov.egg-info/SOURCES.txt' >reading manifest template 'MANIFEST.in' >no previously-included directories found matching 'examples/*/.tox' >no previously-included directories found matching 'examples/*/htmlcov' >no previously-included directories found matching 'examples/*/*/htmlcov' >no previously-included directories found matching 'examples/adhoc-layout/*.egg-info' >no previously-included directories found matching 'examples/src-layout/src/*.egg-info' >warning: no files found matching '.coveragerc' >warning: no previously-included files matching '*.py[cod]' found anywhere in distribution >warning: no previously-included files matching '__pycache__/*' found anywhere in distribution >warning: no previously-included files matching '*.so' found anywhere in distribution >warning: no previously-included files matching '*.dylib' found anywhere in distribution >warning: no previously-included files matching '.coverage' found anywhere in distribution >warning: no previously-included files matching '.coverage.*' found anywhere in distribution >adding license file 'LICENSE' >adding license file 'AUTHORS.rst' >writing manifest file 'src/pytest_cov.egg-info/SOURCES.txt' >warning: build_py: byte-compiling is disabled, skipping. > >copying src/pytest-cov.pth -> build/lib >installing to build/bdist.linux-x86_64/wheel >running install >running install_lib >creating build/bdist.linux-x86_64 >creating build/bdist.linux-x86_64/wheel >creating build/bdist.linux-x86_64/wheel/pytest_cov >copying build/lib/pytest_cov/__init__.py -> build/bdist.linux-x86_64/wheel/pytest_cov >copying build/lib/pytest_cov/compat.py -> build/bdist.linux-x86_64/wheel/pytest_cov >copying build/lib/pytest_cov/embed.py -> build/bdist.linux-x86_64/wheel/pytest_cov >copying build/lib/pytest_cov/plugin.py -> build/bdist.linux-x86_64/wheel/pytest_cov >copying build/lib/pytest_cov/engine.py -> build/bdist.linux-x86_64/wheel/pytest_cov >copying build/lib/pytest-cov.pth -> build/bdist.linux-x86_64/wheel >warning: InstallLibWithPTH: byte-compiling is disabled, skipping. > >running install_egg_info >Copying src/pytest_cov.egg-info to build/bdist.linux-x86_64/wheel/pytest_cov-3.0.0-py3.10.egg-info >running install_scripts >adding license file "LICENSE" (matched pattern "LICEN[CS]E*") >adding license file "AUTHORS.rst" (matched pattern "AUTHORS*") >creating build/bdist.linux-x86_64/wheel/pytest_cov-3.0.0.dist-info/WHEEL >creating '/var/tmp/portage/dev-python/pytest-cov-3.0.0-r2/work/pytest-cov-3.0.0-python3_10/wheel/tmpgdx2s__j/pytest_cov-3.0.0-py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it >adding 'pytest-cov.pth' >adding 'pytest_cov/__init__.py' >adding 'pytest_cov/compat.py' >adding 'pytest_cov/embed.py' >adding 'pytest_cov/engine.py' >adding 'pytest_cov/plugin.py' >adding 'pytest_cov-3.0.0.dist-info/AUTHORS.rst' >adding 'pytest_cov-3.0.0.dist-info/LICENSE' >adding 'pytest_cov-3.0.0.dist-info/METADATA' >adding 'pytest_cov-3.0.0.dist-info/WHEEL' >adding 'pytest_cov-3.0.0.dist-info/entry_points.txt' >adding 'pytest_cov-3.0.0.dist-info/top_level.txt' >adding 'pytest_cov-3.0.0.dist-info/RECORD' >removing build/bdist.linux-x86_64/wheel >2022-10-15 11:22:01,679 gpep517 INFO The backend produced /var/tmp/portage/dev-python/pytest-cov-3.0.0-r2/work/pytest-cov-3.0.0-python3_10/wheel/pytest_cov-3.0.0-py3-none-any.whl > * Installing pytest_cov-3.0.0-py3-none-any.whl to /var/tmp/portage/dev-python/pytest-cov-3.0.0-r2/work/pytest-cov-3.0.0-python3_10/install >gpep517 install-wheel --destdir=/var/tmp/portage/dev-python/pytest-cov-3.0.0-r2/work/pytest-cov-3.0.0-python3_10/install --interpreter=/usr/bin/python3.10 --prefix=/usr --optimize=all /var/tmp/portage/dev-python/pytest-cov-3.0.0-r2/work/pytest-cov-3.0.0-python3_10/wheel/pytest_cov-3.0.0-py3-none-any.whl >2022-10-15 11:22:02,064 gpep517 INFO Installing /var/tmp/portage/dev-python/pytest-cov-3.0.0-r2/work/pytest-cov-3.0.0-python3_10/wheel/pytest_cov-3.0.0-py3-none-any.whl into /var/tmp/portage/dev-python/pytest-cov-3.0.0-r2/work/pytest-cov-3.0.0-python3_10/install >2022-10-15 11:22:02,112 gpep517 INFO Installation complete > * Checking whether python3_10 is suitable ... > * >=dev-lang/python-3.10.4:3.10 ... > [ ok ] > * python_check_deps ... > [ ok ] > * Using python3.10 in global scope > * python3_10: running distutils-r1_run_phase python_compile_all > * python3_10: running distutils-r1_run_phase python_test >python3.10 -m pytest -vv -ra -l -Wdefault --color=no -o console_output_style=count -p no:cov -p no:flake8 -p no:flakes -p no:pylint -p no:markdown -p no:sugar -p no:xvfb --deselect tests/test_pytest_cov.py::test_dist_missing_data -x >============================================================= test session starts ============================================================== >platform linux -- Python 3.10.6, pytest-7.1.3, pluggy-1.0.0 -- /var/tmp/portage/dev-python/pytest-cov-3.0.0-r2/work/pytest-cov-3.0.0-python3_10/install/usr/bin/python3.10 >cachedir: .pytest_cache >rootdir: /var/tmp/portage/dev-python/pytest-cov-3.0.0-r2/work/pytest-cov-3.0.0, configfile: setup.cfg, testpaths: tests >collecting ... collected 131 items / 1 deselected / 130 selected > >tests/test_pytest_cov.py::test_central[branch2x] PASSED [ 1/130] >tests/test_pytest_cov.py::test_central[branch1c] PASSED [ 2/130] >tests/test_pytest_cov.py::test_central[branch1a] PASSED [ 3/130] >tests/test_pytest_cov.py::test_central[nobranch] PASSED [ 4/130] >tests/test_pytest_cov.py::test_annotate PASSED [ 5/130] >tests/test_pytest_cov.py::test_annotate_output_dir PASSED [ 6/130] >tests/test_pytest_cov.py::test_html PASSED [ 7/130] >tests/test_pytest_cov.py::test_html_output_dir PASSED [ 8/130] >tests/test_pytest_cov.py::test_term_report_does_not_interact_with_html_output PASSED [ 9/130] >tests/test_pytest_cov.py::test_html_configured_output_dir PASSED [ 10/130] >tests/test_pytest_cov.py::test_xml_output_dir PASSED [ 11/130] >tests/test_pytest_cov.py::test_term_output_dir PASSED [ 12/130] >tests/test_pytest_cov.py::test_term_missing_output_dir PASSED [ 13/130] >tests/test_pytest_cov.py::test_cov_min_100 PASSED [ 14/130] >tests/test_pytest_cov.py::test_cov_min_50 PASSED [ 15/130] >tests/test_pytest_cov.py::test_cov_min_float_value PASSED [ 16/130] >tests/test_pytest_cov.py::test_cov_min_float_value_not_reached PASSED [ 17/130] >tests/test_pytest_cov.py::test_cov_min_no_report PASSED [ 18/130] >tests/test_pytest_cov.py::test_central_nonspecific[branch2x] PASSED [ 19/130] >tests/test_pytest_cov.py::test_central_nonspecific[branch1c] PASSED [ 20/130] >tests/test_pytest_cov.py::test_central_nonspecific[branch1a] PASSED [ 21/130] >tests/test_pytest_cov.py::test_central_nonspecific[nobranch] PASSED [ 22/130] >tests/test_pytest_cov.py::test_cov_min_from_coveragerc PASSED [ 23/130] >tests/test_pytest_cov.py::test_central_coveragerc[branch2x] PASSED [ 24/130] >tests/test_pytest_cov.py::test_central_coveragerc[branch1c] PASSED [ 25/130] >tests/test_pytest_cov.py::test_central_coveragerc[branch1a] PASSED [ 26/130] >tests/test_pytest_cov.py::test_central_coveragerc[nobranch] PASSED [ 27/130] >tests/test_pytest_cov.py::test_central_with_path_aliasing[branch2x-nodist] PASSED [ 28/130] >tests/test_pytest_cov.py::test_central_with_path_aliasing[branch2x-xdist] PASSED [ 29/130] >tests/test_pytest_cov.py::test_central_with_path_aliasing[branch1c-nodist] PASSED [ 30/130] >tests/test_pytest_cov.py::test_central_with_path_aliasing[branch1c-xdist] PASSED [ 31/130] >tests/test_pytest_cov.py::test_central_with_path_aliasing[branch1a-nodist] PASSED [ 32/130] >tests/test_pytest_cov.py::test_central_with_path_aliasing[branch1a-xdist] PASSED [ 33/130] >tests/test_pytest_cov.py::test_central_with_path_aliasing[nobranch-nodist] PASSED [ 34/130] >tests/test_pytest_cov.py::test_central_with_path_aliasing[nobranch-xdist] PASSED [ 35/130] >tests/test_pytest_cov.py::test_borken_cwd[nodist] PASSED [ 36/130] >tests/test_pytest_cov.py::test_borken_cwd[xdist] PASSED [ 37/130] >tests/test_pytest_cov.py::test_subprocess_with_path_aliasing PASSED [ 38/130] >tests/test_pytest_cov.py::test_show_missing_coveragerc[branch2x] PASSED [ 39/130] >tests/test_pytest_cov.py::test_show_missing_coveragerc[branch1c] PASSED [ 40/130] >tests/test_pytest_cov.py::test_show_missing_coveragerc[branch1a] PASSED [ 41/130] >tests/test_pytest_cov.py::test_show_missing_coveragerc[nobranch] PASSED [ 42/130] >tests/test_pytest_cov.py::test_no_cov_on_fail PASSED [ 43/130] >tests/test_pytest_cov.py::test_no_cov PASSED [ 44/130] >tests/test_pytest_cov.py::test_cov_and_failure_report_on_fail PASSED [ 45/130] >tests/test_pytest_cov.py::test_dist_combine_racecondition PASSED [ 46/130] >tests/test_pytest_cov.py::test_dist_collocated[branch2x] PASSED [ 47/130] >tests/test_pytest_cov.py::test_dist_collocated[branch1c] PASSED [ 48/130] >tests/test_pytest_cov.py::test_dist_collocated[branch1a] PASSED [ 49/130] >tests/test_pytest_cov.py::test_dist_collocated[nobranch] PASSED [ 50/130] >tests/test_pytest_cov.py::test_dist_not_collocated[branch2x] PASSED [ 51/130] >tests/test_pytest_cov.py::test_dist_not_collocated[branch1c] PASSED [ 52/130] >tests/test_pytest_cov.py::test_dist_not_collocated[branch1a] PASSED [ 53/130] >tests/test_pytest_cov.py::test_dist_not_collocated[nobranch] PASSED [ 54/130] >tests/test_pytest_cov.py::test_dist_not_collocated_coveragerc_source[branch2x] PASSED [ 55/130] >tests/test_pytest_cov.py::test_dist_not_collocated_coveragerc_source[branch1c] PASSED [ 56/130] >tests/test_pytest_cov.py::test_dist_not_collocated_coveragerc_source[branch1a] PASSED [ 57/130] >tests/test_pytest_cov.py::test_dist_not_collocated_coveragerc_source[nobranch] PASSED [ 58/130] >tests/test_pytest_cov.py::test_central_subprocess PASSED [ 59/130] >tests/test_pytest_cov.py::test_central_subprocess_change_cwd PASSED [ 60/130] >tests/test_pytest_cov.py::test_central_subprocess_change_cwd_with_pythonpath PASSED [ 61/130] >tests/test_pytest_cov.py::test_central_subprocess_no_subscript PASSED [ 62/130] >tests/test_pytest_cov.py::test_dist_subprocess_collocated PASSED [ 63/130] >tests/test_pytest_cov.py::test_dist_subprocess_not_collocated PASSED [ 64/130] >tests/test_pytest_cov.py::test_invalid_coverage_source PASSED [ 65/130] >tests/test_pytest_cov.py::test_funcarg PASSED [ 66/130] >tests/test_pytest_cov.py::test_funcarg_not_active PASSED [ 67/130] >tests/test_pytest_cov.py::test_multiprocessing_pool SKIPPED (deadlocks on Python 3.8+, see: https://bugs.python.org/issue38227) [ 68/130] >tests/test_pytest_cov.py::test_multiprocessing_pool_terminate SKIPPED (deadlocks on Python 3.8, see: https://bugs.python.org/issue38227) [ 69/130] >tests/test_pytest_cov.py::test_multiprocessing_pool_close PASSED [ 70/130] >tests/test_pytest_cov.py::test_multiprocessing_process PASSED [ 71/130] >tests/test_pytest_cov.py::test_multiprocessing_process_no_source PASSED [ 72/130] >tests/test_pytest_cov.py::test_multiprocessing_process_with_terminate PASSED [ 73/130] >tests/test_pytest_cov.py::test_cleanup_on_sigterm PASSED [ 74/130] >tests/test_pytest_cov.py::test_cleanup_on_sigterm_sig_break[setup0] SKIPPED (condition: sys.platform != "win32") [ 75/130] >tests/test_pytest_cov.py::test_cleanup_on_sigterm_sig_break[setup1] SKIPPED (condition: sys.platform != "win32") [ 76/130] >tests/test_pytest_cov.py::test_cleanup_on_sigterm_sig_break[setup2] SKIPPED (condition: sys.platform != "win32") [ 77/130] >tests/test_pytest_cov.py::test_cleanup_on_sigterm_sig_dfl[setup0] PASSED [ 78/130] >tests/test_pytest_cov.py::test_cleanup_on_sigterm_sig_dfl[setup1] PASSED [ 79/130] >tests/test_pytest_cov.py::test_cleanup_on_sigterm_sig_dfl[setup2] PASSED [ 80/130] >tests/test_pytest_cov.py::test_cleanup_on_sigterm_sig_dfl_sigint PASSED [ 81/130] >tests/test_pytest_cov.py::test_cleanup_on_sigterm_sig_ign PASSED [ 82/130] >tests/test_pytest_cov.py::test_cover_conftest PASSED [ 83/130] >tests/test_pytest_cov.py::test_cover_looponfail PASSED [ 84/130] >tests/test_pytest_cov.py::test_cover_conftest_dist PASSED [ 85/130] >tests/test_pytest_cov.py::test_no_cover_marker PASSED [ 86/130] >tests/test_pytest_cov.py::test_no_cover_fixture PASSED [ 87/130] >tests/test_pytest_cov.py::test_coveragerc PASSED [ 88/130] >tests/test_pytest_cov.py::test_coveragerc_dist PASSED [ 89/130] >tests/test_pytest_cov.py::test_skip_covered_cli[term-missing:skip-covered] PASSED [ 90/130] >tests/test_pytest_cov.py::test_skip_covered_cli[term:skip-covered] PASSED [ 91/130] >tests/test_pytest_cov.py::test_skip_covered_coveragerc_config PASSED [ 92/130] >tests/test_pytest_cov.py::test_clear_environ PASSED [ 93/130] >tests/test_pytest_cov.py::test_dist_boxed PASSED [ 94/130] >tests/test_pytest_cov.py::test_dist_bare_cov PASSED [ 95/130] >tests/test_pytest_cov.py::test_not_started_plugin_does_not_fail PASSED [ 96/130] >tests/test_pytest_cov.py::test_default_output_setting PASSED [ 97/130] >tests/test_pytest_cov.py::test_disabled_output PASSED [ 98/130] >tests/test_pytest_cov.py::test_coverage_file PASSED [ 99/130] >tests/test_pytest_cov.py::test_external_data_file PASSED [100/130] >tests/test_pytest_cov.py::test_external_data_file_xdist PASSED [101/130] >tests/test_pytest_cov.py::test_xdist_no_data_collected PASSED [102/130] >tests/test_pytest_cov.py::test_external_data_file_negative PASSED [103/130] >tests/test_pytest_cov.py::test_append_coverage[branch2x-nodist] PASSED [104/130] >tests/test_pytest_cov.py::test_append_coverage[branch2x-xdist] PASSED [105/130] >tests/test_pytest_cov.py::test_append_coverage[branch1c-nodist] PASSED [106/130] >tests/test_pytest_cov.py::test_append_coverage[branch1c-xdist] PASSED [107/130] >tests/test_pytest_cov.py::test_append_coverage[branch1a-nodist] PASSED [108/130] >tests/test_pytest_cov.py::test_append_coverage[branch1a-xdist] PASSED [109/130] >tests/test_pytest_cov.py::test_append_coverage[nobranch-nodist] PASSED [110/130] >tests/test_pytest_cov.py::test_append_coverage[nobranch-xdist] PASSED [111/130] >tests/test_pytest_cov.py::test_do_not_append_coverage[branch2x-nodist] PASSED [112/130] >tests/test_pytest_cov.py::test_do_not_append_coverage[branch2x-xdist] PASSED [113/130] >tests/test_pytest_cov.py::test_do_not_append_coverage[branch1c-nodist] PASSED [114/130] >tests/test_pytest_cov.py::test_do_not_append_coverage[branch1c-xdist] PASSED [115/130] >tests/test_pytest_cov.py::test_do_not_append_coverage[branch1a-nodist] PASSED [116/130] >tests/test_pytest_cov.py::test_do_not_append_coverage[branch1a-xdist] PASSED [117/130] >tests/test_pytest_cov.py::test_do_not_append_coverage[nobranch-nodist] PASSED [118/130] >tests/test_pytest_cov.py::test_do_not_append_coverage[nobranch-xdist] PASSED [119/130] >tests/test_pytest_cov.py::test_append_coverage_subprocess PASSED [120/130] >tests/test_pytest_cov.py::test_pth_failure PASSED [121/130] >tests/test_pytest_cov.py::test_double_cov PASSED [122/130] >tests/test_pytest_cov.py::test_double_cov2 PASSED [123/130] >tests/test_pytest_cov.py::test_cov_reset PASSED [124/130] >tests/test_pytest_cov.py::test_cov_reset_then_set PASSED [125/130] >tests/test_pytest_cov.py::test_cov_and_no_cov PASSED [126/130] >tests/test_pytest_cov.py::test_contexts[nodist] FAILED [127/130] > >=================================================================== FAILURES =================================================================== >____________________________________________________________ test_contexts[nodist] _____________________________________________________________ > >testdir = <Testdir local('/var/tmp/portage/dev-python/pytest-cov-3.0.0-r2/temp/pytest-of-portage/pytest-0/test_contexts0')>, opts = '' > > @pytest.mark.skipif("coverage.version_info < (5, 0)") > @xdist_params > def test_contexts(testdir, opts): > with open(os.path.join(os.path.dirname(__file__), "contextful.py")) as f: > contextful_tests = f.read() > script = testdir.makepyfile(contextful_tests) > result = testdir.runpytest('-v', > '--cov=%s' % script.dirpath(), > '--cov-context=test', > script, > *opts.split() > ) > assert result.ret == 0 > result.stdout.fnmatch_lines([ > 'test_contexts* 100%*', > ]) > > data = coverage.CoverageData(".coverage") > data.read() >> assert data.measured_contexts() == set(EXPECTED_CONTEXTS) >E AssertionError: assert {'',\n 'test_contexts.py::OldStyleTests::test_03|run',\n 'test_contexts.py::OldStyleTests::test_03|setup',\n 'test_contexts.py::OldStyleTests::test_03|teardown',\n 'test_contexts.py::OldStyleTests::test_04|run',\n 'test_contexts.py::OldStyleTests::test_04|setup',\n 'test_contexts.py::OldStyleTests::test_04|teardown',\n 'test_contexts.py::test_01|run',\n 'test_contexts.py::test_01|setup',\n 'test_contexts.py::test_01|teardown',\n 'test_contexts.py::test_02|run',\n 'test_contexts.py::test_02|setup',\n 'test_contexts.py::test_02|teardown',\n 'test_contexts.py::test_05|run',\n 'test_contexts.py::test_05|setup',\n 'test_contexts.py::test_05|teardown',\n 'test_contexts.py::test_06|run',\n 'test_contexts.py::test_06|setup',\n 'test_contexts.py::test_06|teardown',\n 'test_contexts.py::test_07|run',\n 'test_contexts.py::test_07|setup',\n 'test_contexts.py::test_07|teardown',\n 'test_contexts.py::test_08|run',\n 'test_contexts.py::test_08|setup',\n 'test_contexts.py::test_08|teardown',\n 'test_contexts.py::test_09[1]|run',\n 'test_contexts.py::test_09[1]|setup',\n 'test_contexts.py::test_09[1]|teardown',\n 'test_contexts.py::test_09[2]|run',\n 'test_contexts.py::test_09[2]|setup',\n 'test_contexts.py::test_09[2]|teardown',\n 'test_contexts.py::test_09[3]|run',\n 'test_contexts.py::test_09[3]|setup',\n 'test_contexts.py::test_09[3]|teardown',\n 'test_contexts.py::test_10|run',\n 'test_contexts.py::test_10|setup',\n 'test_contexts.py::test_10|teardown',\n 'test_contexts.py::test_11[1-101]|run',\n 'test_contexts.py::test_11[1-101]|setup',\n 'test_contexts.py::test_11[1-101]|teardown',\n 'test_contexts.py::test_11[2-202]|run',\n 'test_contexts.py::test_11[2-202]|setup',\n 'test_contexts.py::test_11[2-202]|teardown',\n 'test_contexts.py::test_12[one]|run',\n 'test_contexts.py::test_12[one]|setup',\n 'test_contexts.py::test_12[one]|teardown',\n 'test_contexts.py::test_12[two]|run',\n 'test_contexts.py::test_12[two]|setup',\n 'test_contexts.py::test_12[two]|teardown',\n 'test_contexts.py::test_13[3-1]|run',\n 'test_contexts.py::test_13[3-1]|setup',\n 'test_contexts.py::test_13[3-1]|teardown',\n 'test_contexts.py::test_13[3-2]|run',\n 'test_contexts.py::test_13[3-2]|setup',\n 'test_contexts.py::test_13[3-2]|teardown',\n 'test_contexts.py::test_13[4-1]|run',\n 'test_contexts.py::test_13[4-1]|setup',\n 'test_contexts.py::test_13[4-1]|teardown',\n 'test_contexts.py::test_13[4-2]|run',\n 'test_contexts.py::test_13[4-2]|setup',\n 'test_contexts.py::test_13[4-2]|teardown'} == {'',\n 'test_contexts.py::OldStyleTests::test_03|run',\n 'test_contexts.py::OldStyleTests::test_03|setup',\n 'test_contexts.py::OldStyleTests::test_04|run',\n 'test_contexts.py::OldStyleTests::test_04|teardown',\n 'test_contexts.py::test_01|run',\n 'test_contexts.py::test_02|run',\n 'test_contexts.py::test_05|run',\n 'test_contexts.py::test_05|setup',\n 'test_contexts.py::test_06|run',\n 'test_contexts.py::test_06|setup',\n 'test_contexts.py::test_07|run',\n 'test_contexts.py::test_07|setup',\n 'test_contexts.py::test_08|run',\n 'test_contexts.py::test_09[1]|run',\n 'test_contexts.py::test_09[1]|setup',\n 'test_contexts.py::test_09[2]|run',\n 'test_contexts.py::test_09[2]|setup',\n 'test_contexts.py::test_09[3]|run',\n 'test_contexts.py::test_09[3]|setup',\n 'test_contexts.py::test_10|run',\n 'test_contexts.py::test_11[1-101]|run',\n 'test_contexts.py::test_11[2-202]|run',\n 'test_contexts.py::test_12[one]|run',\n 'test_contexts.py::test_12[two]|run',\n 'test_contexts.py::test_13[3-1]|run',\n 'test_contexts.py::test_13[3-2]|run',\n 'test_contexts.py::test_13[4-1]|run',\n 'test_contexts.py::test_13[4-2]|run'} >E Extra items in the left set: >E 'test_contexts.py::OldStyleTests::test_04|setup' >E 'test_contexts.py::test_13[3-2]|teardown' >E 'test_contexts.py::test_08|setup' >E 'test_contexts.py::test_12[two]|setup' >E 'test_contexts.py::test_13[4-2]|teardown' >E 'test_contexts.py::test_08|teardown' >E 'test_contexts.py::test_07|teardown' >E 'test_contexts.py::test_13[4-1]|teardown' >E 'test_contexts.py::test_12[two]|teardown' >E 'test_contexts.py::test_11[2-202]|setup' >E 'test_contexts.py::test_09[2]|teardown' >E 'test_contexts.py::test_09[1]|teardown' >E 'test_contexts.py::test_02|setup' >E 'test_contexts.py::test_05|teardown' >E 'test_contexts.py::test_11[1-101]|teardown' >E 'test_contexts.py::test_01|teardown' >E 'test_contexts.py::test_13[4-1]|setup' >E 'test_contexts.py::test_11[1-101]|setup' >E 'test_contexts.py::test_13[3-1]|setup' >E 'test_contexts.py::test_02|teardown' >E 'test_contexts.py::test_13[3-2]|setup' >E 'test_contexts.py::test_06|teardown' >E 'test_contexts.py::test_10|teardown' >E 'test_contexts.py::test_13[4-2]|setup' >E 'test_contexts.py::test_11[2-202]|teardown' >E 'test_contexts.py::test_12[one]|setup' >E 'test_contexts.py::test_01|setup' >E 'test_contexts.py::OldStyleTests::test_03|teardown' >E 'test_contexts.py::test_10|setup' >E 'test_contexts.py::test_13[3-1]|teardown' >E 'test_contexts.py::test_09[3]|teardown' >E 'test_contexts.py::test_12[one]|teardown' >E Full diff: >E { >E '', >E 'test_contexts.py::OldStyleTests::test_03|run', >E 'test_contexts.py::OldStyleTests::test_03|setup', >E + 'test_contexts.py::OldStyleTests::test_03|teardown', >E 'test_contexts.py::OldStyleTests::test_04|run', >E + 'test_contexts.py::OldStyleTests::test_04|setup', >E 'test_contexts.py::OldStyleTests::test_04|teardown', >E 'test_contexts.py::test_01|run', >E + 'test_contexts.py::test_01|setup', >E + 'test_contexts.py::test_01|teardown', >E 'test_contexts.py::test_02|run', >E + 'test_contexts.py::test_02|setup', >E + 'test_contexts.py::test_02|teardown', >E 'test_contexts.py::test_05|run', >E 'test_contexts.py::test_05|setup', >E + 'test_contexts.py::test_05|teardown', >E 'test_contexts.py::test_06|run', >E 'test_contexts.py::test_06|setup', >E + 'test_contexts.py::test_06|teardown', >E 'test_contexts.py::test_07|run', >E 'test_contexts.py::test_07|setup', >E + 'test_contexts.py::test_07|teardown', >E 'test_contexts.py::test_08|run', >E + 'test_contexts.py::test_08|setup', >E + 'test_contexts.py::test_08|teardown', >E 'test_contexts.py::test_09[1]|run', >E 'test_contexts.py::test_09[1]|setup', >E + 'test_contexts.py::test_09[1]|teardown', >E 'test_contexts.py::test_09[2]|run', >E 'test_contexts.py::test_09[2]|setup', >E + 'test_contexts.py::test_09[2]|teardown', >E 'test_contexts.py::test_09[3]|run', >E 'test_contexts.py::test_09[3]|setup', >E + 'test_contexts.py::test_09[3]|teardown', >E 'test_contexts.py::test_10|run', >E + 'test_contexts.py::test_10|setup', >E + 'test_contexts.py::test_10|teardown', >E 'test_contexts.py::test_11[1-101]|run', >E + 'test_contexts.py::test_11[1-101]|setup', >E + 'test_contexts.py::test_11[1-101]|teardown', >E 'test_contexts.py::test_11[2-202]|run', >E + 'test_contexts.py::test_11[2-202]|setup', >E + 'test_contexts.py::test_11[2-202]|teardown', >E 'test_contexts.py::test_12[one]|run', >E + 'test_contexts.py::test_12[one]|setup', >E + 'test_contexts.py::test_12[one]|teardown', >E 'test_contexts.py::test_12[two]|run', >E + 'test_contexts.py::test_12[two]|setup', >E + 'test_contexts.py::test_12[two]|teardown', >E 'test_contexts.py::test_13[3-1]|run', >E + 'test_contexts.py::test_13[3-1]|setup', >E + 'test_contexts.py::test_13[3-1]|teardown', >E 'test_contexts.py::test_13[3-2]|run', >E + 'test_contexts.py::test_13[3-2]|setup', >E + 'test_contexts.py::test_13[3-2]|teardown', >E 'test_contexts.py::test_13[4-1]|run', >E + 'test_contexts.py::test_13[4-1]|setup', >E + 'test_contexts.py::test_13[4-1]|teardown', >E 'test_contexts.py::test_13[4-2]|run', >E + 'test_contexts.py::test_13[4-2]|setup', >E + 'test_contexts.py::test_13[4-2]|teardown', >E } > >contextful_tests = ('# A test file for test_pytest_cov.py:test_contexts\n' > '\n' > 'import unittest\n' > '\n' > 'import pytest\n' > '\n' > '\n' > 'def test_01():\n' > ' assert 1 == 1 # r1\n' > '\n' > '\n' > 'def test_02():\n' > ' assert 2 == 2 # r2\n' > '\n' > '\n' > 'class OldStyleTests(unittest.TestCase):\n' > ' items = []\n' > '\n' > ' @classmethod\n' > ' def setUpClass(cls):\n' > ' cls.items.append("hello") # s3\n' > '\n' > ' @classmethod\n' > ' def tearDownClass(cls):\n' > ' cls.items.pop() # t4\n' > '\n' > ' def setUp(self):\n' > ' self.number = 1 # r3 r4\n' > '\n' > ' def tearDown(self):\n' > ' self.number = None # r3 r4\n' > '\n' > ' def test_03(self):\n' > ' assert self.number == 1 # r3\n' > ' assert self.items[0] == "hello" # r3\n' > '\n' > ' def test_04(self):\n' > ' assert self.number == 1 # r4\n' > ' assert self.items[0] == "hello" # r4\n' > '\n' > '\n' > '@pytest.fixture\n' > 'def some_data():\n' > ' return [1, 2, 3] # s5 s6\n' > '\n' > '\n' > 'def test_05(some_data):\n' > ' assert len(some_data) == 3 # r5\n' > '\n' > '\n' > '@pytest.fixture\n' > 'def more_data(some_data):\n' > ' return [2*x for x in some_data] # s6\n' > '\n' > '\n' > 'def test_06(some_data, more_data):\n' > ' assert len(some_data) == len(more_data) # r6\n' > '\n' > '\n' > "@pytest.fixture(scope='session')\n" > 'def expensive_data():\n' > ' return list(range(10)) # s7\n' > '\n' > '\n' > 'def test_07(expensive_data):\n' > ' assert len(expensive_data) == 10 # r7\n' > '\n' > '\n' > 'def test_08(expensive_data):\n' > ' assert len(expensive_data) == 10 # r8\n' > '\n' > '\n' > '@pytest.fixture(params=[1, 2, 3])\n' > 'def parametrized_number(request):\n' > ' return request.param # s9-1 s9-2 s9-3\n' > '\n' > '\n' > 'def test_09(parametrized_number):\n' > ' assert parametrized_number > 0 # r9-1 r9-2 r9-3\n' > '\n' > '\n' > 'def test_10():\n' > ' assert 1 == 1 # r10\n' > '\n' > '\n' > '@pytest.mark.parametrize("x, ans", [\n' > ' (1, 101),\n' > ' (2, 202),\n' > '])\n' > 'def test_11(x, ans):\n' > ' assert 100 * x + x == ans # r11-1 r11-2\n' > '\n' > '\n' > '@pytest.mark.parametrize("x, ans", [\n' > ' (1, 101),\n' > ' (2, 202),\n' > "], ids=['one', 'two'])\n" > 'def test_12(x, ans):\n' > ' assert 100 * x + x == ans # r12-1 r12-2\n' > '\n' > '\n' > '@pytest.mark.parametrize("x", [1, 2])\n' > '@pytest.mark.parametrize("y", [3, 4])\n' > 'def test_13(x, y):\n' > ' assert x + y > 0 # r13-1 r13-2 r13-3 ' > 'r13-4\n') >data = <CoverageData @0x7f18f4a31900 _no_disk=False _basename='/var/tmp/portage/dev-python/pytest-cov-3.0.0-r2/temp/pytest-of-portage/pytest-0/test_contexts0/.coverage' _suffix=None _warn=None _debug=<coverage.debug.NoDebugging object at 0x7f18f4a32ad0> _filename='/var/tmp/portage/dev-python/pytest-cov-3.0.0-r2/temp/pytest-of-portage/pytest-0/test_contexts0/.coverage' _file_map={'/var/tmp/portage/dev-python/pytest-cov-3.0.0-r2/temp/pytest-of-portage/pytest-0/test_contexts0/test_contexts.py': 1} _dbs={139745237230144: <SqliteDb @0x7f18f4a30580 debug=<coverage.debug.NoDebugging object at 0x7f18f4a32ad0> filename='/var/tmp/portage/dev-python/pytest-cov-3.0.0-r2/temp/pytest-of-portage/pytest-0/test_contexts0/.coverage' nest=0 con=None>} _pid=90 _lock=<unlocked _thread.RLock object owner=0 count=0 at 0x7f18f47a6bc0> _have_used=True _has_lines=True _has_arcs=False _current_context=None _current_context_id=None _query_context_ids=None> >f = <_io.TextIOWrapper name='/var/tmp/portage/dev-python/pytest-cov-3.0.0-r2/work/pytest-cov-3.0.0/tests/contextful.py' mode='r' encoding='UTF-8'> >opts = '' >result = <RunResult ret=ExitCode.OK len(stdout.lines)=36 len(stderr.lines)=0 duration=0.63s> >script = local('/var/tmp/portage/dev-python/pytest-cov-3.0.0-r2/temp/pytest-of-portage/pytest-0/test_contexts0/test_contexts.py') >testdir = <Testdir local('/var/tmp/portage/dev-python/pytest-cov-3.0.0-r2/temp/pytest-of-portage/pytest-0/test_contexts0')> > >/var/tmp/portage/dev-python/pytest-cov-3.0.0-r2/work/pytest-cov-3.0.0/tests/test_pytest_cov.py:2104: AssertionError >------------------------------------------------------------- Captured stdout call ------------------------------------------------------------- >running: /var/tmp/portage/dev-python/pytest-cov-3.0.0-r2/work/pytest-cov-3.0.0-python3_10/install/usr/bin/python3.10 -mpytest --basetemp=/var/tmp/portage/dev-python/pytest-cov-3.0.0-r2/temp/pytest-of-portage/pytest-0/test_contexts0/runpytest-0 -v --cov=/var/tmp/portage/dev-python/pytest-cov-3.0.0-r2/temp/pytest-of-portage/pytest-0/test_contexts0 --cov-context=test /var/tmp/portage/dev-python/pytest-cov-3.0.0-r2/temp/pytest-of-portage/pytest-0/test_contexts0/test_contexts.py --basetemp=/var/tmp/portage/dev-python/pytest-cov-3.0.0-r2/temp/pytest-of-portage/pytest-0/basetemp > in: /var/tmp/portage/dev-python/pytest-cov-3.0.0-r2/temp/pytest-of-portage/pytest-0/test_contexts0 >============================================================= test session starts ============================================================== >platform linux -- Python 3.10.6, pytest-7.1.3, pluggy-1.0.0 -- /var/tmp/portage/dev-python/pytest-cov-3.0.0-r2/work/pytest-cov-3.0.0-python3_10/install/usr/bin/python3.10 >cachedir: .pytest_cache >rootdir: /var/tmp/portage/dev-python/pytest-cov-3.0.0-r2/temp/pytest-of-portage/pytest-0/test_contexts0 >collecting ... collected 20 items > >test_contexts.py::test_01 PASSED [ 5%] >test_contexts.py::test_02 PASSED [ 10%] >test_contexts.py::OldStyleTests::test_03 PASSED [ 15%] >test_contexts.py::OldStyleTests::test_04 PASSED [ 20%] >test_contexts.py::test_05 PASSED [ 25%] >test_contexts.py::test_06 PASSED [ 30%] >test_contexts.py::test_07 PASSED [ 35%] >test_contexts.py::test_08 PASSED [ 40%] >test_contexts.py::test_09[1] PASSED [ 45%] >test_contexts.py::test_09[2] PASSED [ 50%] >test_contexts.py::test_09[3] PASSED [ 55%] >test_contexts.py::test_10 PASSED [ 60%] >test_contexts.py::test_11[1-101] PASSED [ 65%] >test_contexts.py::test_11[2-202] PASSED [ 70%] >test_contexts.py::test_12[one] PASSED [ 75%] >test_contexts.py::test_12[two] PASSED [ 80%] >test_contexts.py::test_13[3-1] PASSED [ 85%] >test_contexts.py::test_13[3-2] PASSED [ 90%] >test_contexts.py::test_13[4-1] PASSED [ 95%] >test_contexts.py::test_13[4-2] PASSED [100%] > >---------- coverage: platform linux, python 3.10.6-final-0 ----------- >Name Stmts Miss Cover >-------------------------------------- >test_contexts.py 58 0 100% >-------------------------------------- >TOTAL 58 0 100% > > >============================================================== 20 passed in 0.16s ============================================================== >=============================================================== warnings summary =============================================================== >../../../../../../../usr/lib/python3.10/site-packages/_pytest/config/__init__.py:1199 > /usr/lib/python3.10/site-packages/_pytest/config/__init__.py:1199: PytestRemovedIn8Warning: The --strict option is deprecated, use --strict-markers instead. > self.issue_config_time_warning( > >-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html >=========================================================== short test summary info ============================================================ >SKIPPED [1] tests/test_pytest_cov.py:1047: deadlocks on Python 3.8+, see: https://bugs.python.org/issue38227 >SKIPPED [1] tests/test_pytest_cov.py:1089: deadlocks on Python 3.8, see: https://bugs.python.org/issue38227 >SKIPPED [3] tests/test_pytest_cov.py:1316: condition: sys.platform != "win32" >FAILED tests/test_pytest_cov.py::test_contexts[nodist] - AssertionError: assert {'',\n 'test_contexts.py::OldStyleTests::test_03|run',\n 'tes... >!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! >================================ 1 failed, 121 passed, 5 skipped, 1 deselected, 1 warning in 141.25s (0:02:21) ================================= > * ERROR: dev-python/pytest-cov-3.0.0-r2::gentoo failed (test phase): > * pytest failed with python3.10 > * > * Call stack: > * ebuild.sh, line 122: Called src_test > * environment, line 3454: Called distutils-r1_src_test > * environment, line 1671: Called _distutils-r1_run_foreach_impl 'python_test' > * environment, line 734: Called python_foreach_impl 'distutils-r1_run_phase' 'python_test' > * environment, line 3107: Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' > * environment, line 2637: Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' > * environment, line 2635: Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'python_test' > * environment, line 1085: Called distutils-r1_run_phase 'python_test' > * environment, line 1594: Called python_test > * environment, line 3402: Called epytest '-x' > * environment, line 2149: 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-cov-3.0.0-r2::gentoo'`, > * the complete build log and the output of `emerge -pqv '=dev-python/pytest-cov-3.0.0-r2::gentoo'`. > * The complete build log is located at '/var/log/portage/dev-python:pytest-cov-3.0.0-r2:20221015-152153.log'. > * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-python/pytest-cov-3.0.0-r2/temp/build.log'. > * The ebuild environment file is located at '/var/tmp/portage/dev-python/pytest-cov-3.0.0-r2/temp/environment'. > * Working directory: '/var/tmp/portage/dev-python/pytest-cov-3.0.0-r2/work/pytest-cov-3.0.0' > * S: '/var/tmp/portage/dev-python/pytest-cov-3.0.0-r2/work/pytest-cov-3.0.0'
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 877263
: 824341 |
824343