Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 634976 Details for
Bug 719890
dev-python/pytest-4.5.0: test failures
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
build.log
file_719890.txt (text/plain), 202.18 KB, created by
Sam James
on 2020-04-28 05:45:59 UTC
(
hide
)
Description:
build.log
Filename:
MIME Type:
Creator:
Sam James
Created:
2020-04-28 05:45:59 UTC
Size:
202.18 KB
patch
obsolete
>[32;01m * [39;49;00mPackage: dev-python/pytest-4.5.0 >[32;01m * [39;49;00mRepository: gentoo >[32;01m * [39;49;00mMaintainer: python@gentoo.org >[32;01m * [39;49;00mUSE: arm64 elibc_glibc kernel_linux python_targets_python2_7 python_targets_python3_6 test userland_GNU >[32;01m * [39;49;00mFEATURES: network-sandbox preserve-libs sandbox test userpriv usersandbox >>>> Unpacking source... >>>> Unpacking pytest-4.5.0.tar.gz to /var/tmp/portage/dev-python/pytest-4.5.0/work >>>> Source unpacked in /var/tmp/portage/dev-python/pytest-4.5.0/work >>>> Preparing source in /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0 ... > [32;01m*[0m Applying pytest-4.5.0-strip-setuptools_scm.patch ... >[A[182C [34;01m[ [32;01mok[34;01m ][0m >>>> Source prepared. >>>> Configuring source in /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0 ... >>>> Source configured. >>>> Compiling source in /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0 ... > [32;01m*[0m python2_7: running distutils-r1_run_phase distutils-r1_python_compile > [33;01m*[0m DISTUTILS_USE_SETUPTOOLS value is probably incorrect > [33;01m*[0m value: DISTUTILS_USE_SETUPTOOLS=bdepend (default?) > [33;01m*[0m expected: DISTUTILS_USE_SETUPTOOLS=rdepend >python2.7 setup.py build >running build >running build_py >copying src/pytest.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib >creating /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest >copying src/_pytest/doctest.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest >copying src/_pytest/recwarn.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest >copying src/_pytest/pytester.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest >copying src/_pytest/deprecated.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest >copying src/_pytest/freeze_support.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest >copying src/_pytest/python.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest >copying src/_pytest/python_api.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest >copying src/_pytest/runner.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest >copying src/_pytest/unittest.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest >copying src/_pytest/warnings.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest >copying src/_pytest/hookspec.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest >copying src/_pytest/_version.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest >copying src/_pytest/pastebin.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest >copying src/_pytest/setupplan.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest >copying src/_pytest/resultlog.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest >copying src/_pytest/tmpdir.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest >copying src/_pytest/nose.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest >copying src/_pytest/outcomes.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest >copying src/_pytest/reports.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest >copying src/_pytest/capture.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest >copying src/_pytest/terminal.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest >copying src/_pytest/logging.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest >copying src/_pytest/debugging.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest >copying src/_pytest/_argcomplete.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest >copying src/_pytest/warning_types.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest >copying src/_pytest/stepwise.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest >copying src/_pytest/skipping.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest >copying src/_pytest/monkeypatch.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest >copying src/_pytest/compat.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest >copying src/_pytest/nodes.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest >copying src/_pytest/cacheprovider.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest >copying src/_pytest/pathlib.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest >copying src/_pytest/main.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest >copying src/_pytest/__init__.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest >copying src/_pytest/setuponly.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest >copying src/_pytest/helpconfig.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest >copying src/_pytest/junitxml.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest >copying src/_pytest/fixtures.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest >creating /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/_code >copying src/_pytest/_code/code.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/_code >copying src/_pytest/_code/source.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/_code >copying src/_pytest/_code/_py2traceback.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/_code >copying src/_pytest/_code/__init__.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/_code >creating /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/_io >copying src/_pytest/_io/saferepr.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/_io >copying src/_pytest/_io/__init__.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/_io >creating /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/assertion >copying src/_pytest/assertion/util.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/assertion >copying src/_pytest/assertion/truncate.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/assertion >copying src/_pytest/assertion/rewrite.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/assertion >copying src/_pytest/assertion/__init__.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/assertion >creating /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/config >copying src/_pytest/config/exceptions.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/config >copying src/_pytest/config/__init__.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/config >copying src/_pytest/config/findpaths.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/config >copying src/_pytest/config/argparsing.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/config >creating /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/mark >copying src/_pytest/mark/evaluate.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/mark >copying src/_pytest/mark/legacy.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/mark >copying src/_pytest/mark/structures.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/mark >copying src/_pytest/mark/__init__.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/mark >warning: build_py: byte-compiling is disabled, skipping. > > [32;01m*[0m python3_6: running distutils-r1_run_phase distutils-r1_python_compile >python3.6 setup.py build -j 4 >running build >running build_py >copying src/pytest.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python3_6/lib >creating /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python3_6/lib/_pytest >copying src/_pytest/doctest.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python3_6/lib/_pytest >copying src/_pytest/recwarn.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python3_6/lib/_pytest >copying src/_pytest/pytester.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python3_6/lib/_pytest >copying src/_pytest/deprecated.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python3_6/lib/_pytest >copying src/_pytest/freeze_support.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python3_6/lib/_pytest >copying src/_pytest/python.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python3_6/lib/_pytest >copying src/_pytest/python_api.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python3_6/lib/_pytest >copying src/_pytest/runner.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python3_6/lib/_pytest >copying src/_pytest/unittest.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python3_6/lib/_pytest >copying src/_pytest/warnings.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python3_6/lib/_pytest >copying src/_pytest/hookspec.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python3_6/lib/_pytest >copying src/_pytest/_version.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python3_6/lib/_pytest >copying src/_pytest/pastebin.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python3_6/lib/_pytest >copying src/_pytest/setupplan.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python3_6/lib/_pytest >copying src/_pytest/resultlog.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python3_6/lib/_pytest >copying src/_pytest/tmpdir.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python3_6/lib/_pytest >copying src/_pytest/nose.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python3_6/lib/_pytest >copying src/_pytest/outcomes.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python3_6/lib/_pytest >copying src/_pytest/reports.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python3_6/lib/_pytest >copying src/_pytest/capture.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python3_6/lib/_pytest >copying src/_pytest/terminal.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python3_6/lib/_pytest >copying src/_pytest/logging.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python3_6/lib/_pytest >copying src/_pytest/debugging.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python3_6/lib/_pytest >copying src/_pytest/_argcomplete.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python3_6/lib/_pytest >copying src/_pytest/warning_types.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python3_6/lib/_pytest >copying src/_pytest/stepwise.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python3_6/lib/_pytest >copying src/_pytest/skipping.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python3_6/lib/_pytest >copying src/_pytest/monkeypatch.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python3_6/lib/_pytest >copying src/_pytest/compat.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python3_6/lib/_pytest >copying src/_pytest/nodes.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python3_6/lib/_pytest >copying src/_pytest/cacheprovider.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python3_6/lib/_pytest >copying src/_pytest/pathlib.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python3_6/lib/_pytest >copying src/_pytest/main.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python3_6/lib/_pytest >copying src/_pytest/__init__.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python3_6/lib/_pytest >copying src/_pytest/setuponly.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python3_6/lib/_pytest >copying src/_pytest/helpconfig.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python3_6/lib/_pytest >copying src/_pytest/junitxml.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python3_6/lib/_pytest >copying src/_pytest/fixtures.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python3_6/lib/_pytest >creating /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python3_6/lib/_pytest/_code >copying src/_pytest/_code/code.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python3_6/lib/_pytest/_code >copying src/_pytest/_code/source.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python3_6/lib/_pytest/_code >copying src/_pytest/_code/_py2traceback.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python3_6/lib/_pytest/_code >copying src/_pytest/_code/__init__.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python3_6/lib/_pytest/_code >creating /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python3_6/lib/_pytest/_io >copying src/_pytest/_io/saferepr.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python3_6/lib/_pytest/_io >copying src/_pytest/_io/__init__.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python3_6/lib/_pytest/_io >creating /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python3_6/lib/_pytest/assertion >copying src/_pytest/assertion/util.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python3_6/lib/_pytest/assertion >copying src/_pytest/assertion/truncate.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python3_6/lib/_pytest/assertion >copying src/_pytest/assertion/rewrite.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python3_6/lib/_pytest/assertion >copying src/_pytest/assertion/__init__.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python3_6/lib/_pytest/assertion >creating /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python3_6/lib/_pytest/config >copying src/_pytest/config/exceptions.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python3_6/lib/_pytest/config >copying src/_pytest/config/__init__.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python3_6/lib/_pytest/config >copying src/_pytest/config/findpaths.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python3_6/lib/_pytest/config >copying src/_pytest/config/argparsing.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python3_6/lib/_pytest/config >creating /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python3_6/lib/_pytest/mark >copying src/_pytest/mark/evaluate.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python3_6/lib/_pytest/mark >copying src/_pytest/mark/legacy.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python3_6/lib/_pytest/mark >copying src/_pytest/mark/structures.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python3_6/lib/_pytest/mark >copying src/_pytest/mark/__init__.py -> /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python3_6/lib/_pytest/mark >warning: build_py: byte-compiling is disabled, skipping. > >>>> Source compiled. >>>> Test phase: dev-python/pytest-4.5.0 > [32;01m*[0m python2_7: running distutils-r1_run_phase python_test > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >==================================================================================== test session starts ===================================================================================== >platform linux2 -- Python 2.7.17, pytest-4.5.0, py-1.8.0, pluggy-0.13.1 >rootdir: /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0, inifile: tox.ini, testpaths: testing >plugins: hypothesis-4.57.1, backports.unittest-mock-1.5, pyfakefs-3.7.2 >collected 2352 items > >testing/acceptance_test.py ....... [ 0%] >testing/deprecated_test.py .... [ 0%] >testing/test_argcomplete.py .. [ 0%] >testing/test_assertion.py ..............................FFF.................... [ 2%] >testing/test_assertrewrite.py .................... [ 3%] >testing/test_capture.py .......s.s...............................s..... [ 5%] >testing/test_collection.py . [ 5%] >testing/test_compat.py ...... [ 5%] >testing/test_config.py ............................. [ 7%] >testing/test_conftest.py ........... [ 7%] >testing/test_entry_points.py ... [ 7%] >testing/test_junitxml.py .... [ 7%] >testing/test_mark.py ................ [ 8%] >testing/test_monkeypatch.py .................................. [ 10%] >testing/test_nodes.py ......... [ 10%] >testing/test_nose.py .. [ 10%] >testing/test_parseopt.py ............................ [ 11%] >testing/test_pastebin.py . [ 11%] >testing/test_pathlib.py ..................................... [ 13%] >testing/test_pluginmanager.py ......... [ 13%] >testing/test_pytester.py ............... [ 14%] >testing/test_recwarn.py .................................... [ 15%] >testing/test_resultlog.py .... [ 16%] >testing/test_runner.py ............. [ 16%] >testing/test_terminal.py ............................. [ 17%] >testing/test_tmpdir.py ....s......... [ 18%] >testing/test_warnings.py . [ 18%] >testing/code/test_code.py ................ [ 19%] >testing/code/test_excinfo.py ..............s................................................................ssssss........ [ 23%] >testing/code/test_source.py ................................................................... [ 25%] >testing/freeze/tests/test_trivial.py .. [ 26%] >testing/io/test_saferepr.py ....... [ 26%] >testing/logging/test_fixture.py ........ [ 26%] >testing/logging/test_formatter.py . [ 26%] >testing/logging/test_reporting.py .. [ 26%] >testing/python/approx.py .sssss..........................sssss...........ss. [ 28%] >testing/python/collect.py .. [ 29%] >testing/python/fixtures.py .... [ 29%] >testing/python/integration.py ..x. [ 29%] >testing/python/metafunc.py .............................. [ 30%] >testing/python/raises.py ................... [ 31%] >testing/freeze/tests/test_doctest.txt . [ 31%] >testing/acceptance_test.py .......FF....................... [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >........x.........s..... [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >F..s [ 34%] >testing/deprecated_test.py ........ [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >.. [ 34%] >testing/test_assertion.py [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >F [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >F [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >F [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >F [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >..ssss....... [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >...s [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >.......... [ 36%] >testing/test_assertrewrite.py [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >F.....sss.... [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >.. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >...s [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >.. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >F [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >F......... [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >............... [ 38%] >testing/test_cacheprovider.py ............................................. [ 40%] >testing/test_capture.py ......x.... [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >..........s.. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >.... [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >.... [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >....s.... [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >... [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >... [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >.. [ 43%] >testing/test_collection.py ............................x................................. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >F....... [ 46%] >testing/test_compat.py ss [ 46%] >testing/test_config.py .........x.....s...............FF.F................................................ [ 50%] >testing/test_conftest.py .. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >....................................... [ 51%] >testing/test_doctest.py ..................................................................................................... [ 56%] >testing/test_helpconfig.py ..... [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [ 56%] >testing/test_junitxml.py ...................................................s.x.......... [ 59%] >testing/test_mark.py .................................................x......... [ 61%] >testing/test_modimport.py [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [ 63%] >testing/test_monkeypatch.py .... [ 63%] >testing/test_nodes.py . [ 63%] >testing/test_nose.py ................. [ 64%] >testing/test_parseopt.py [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [ 64%] >testing/test_pastebin.py ... [ 64%] >testing/test_pluginmanager.py ............... [ 65%] >testing/test_pytester.py x............ [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >.. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >..... [ 66%] >testing/test_recwarn.py .. [ 66%] >testing/test_reports.py .............. [ 67%] >testing/test_resultlog.py ...... [ 67%] >testing/test_runner.py .....................sssssss....ssss.x......... [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >.......... [ 69%] >testing/test_runner_xunit.py ............. [ 70%] >testing/test_session.py ....................... [ 71%] >testing/test_skipping.py ........................................................................... [ 74%] >testing/test_stepwise.py ...... [ 74%] >testing/test_terminal.py ....... [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >F................................s...................................................sss.....s [ 79%] >testing/test_tmpdir.py ......... [ 79%] >testing/test_unittest.py ....................... [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >............................. [ 81%] >testing/test_warnings.py .. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >F [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >F..s................ [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >F [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >F [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >F [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >F [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >F [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >F [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >......... [ 83%] >testing/code/test_excinfo.py ... [ 83%] >testing/examples/test_issue519.py . [ 83%] >testing/logging/test_fixture.py .. [ 83%] >testing/logging/test_reporting.py ................................ [ 84%] >testing/python/approx.py . [ 84%] >testing/python/collect.py ................................................ [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >........................ [ 88%] >testing/python/fixtures.py ...................... [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >F..............................................x.................................................. [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p > [33;01m*[0m Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p >................................... [ 94%] >.............. [ 95%] >testing/python/integration.py ............... [ 95%] >testing/python/metafunc.py ..................................................x............. [ 98%] >testing/python/raises.py ... [ 98%] >testing/python/setup_only.py ........................ [ 99%] >testing/python/setup_plan.py . [ 99%] >testing/python/show_fixtures_per_test.py ...... [100%] > >========================================================================================== FAILURES ========================================================================================== >________________________________________________________________________ TestAssert_reprcompare_attrsclass.test_attrs ________________________________________________________________________ > >self = <test_assertion.TestAssert_reprcompare_attrsclass object at 0x7fba4d84d0> > > def test_attrs(self): > @attr.s > class SimpleDataObject(object): > field_a = attr.ib() > field_b = attr.ib() > > left = SimpleDataObject(1, "b") > right = SimpleDataObject(1, "c") > > lines = callequal(left, right) >> assert lines[1].startswith("Omitting 1 identical item") >E AssertionError: assert False >E + where False = <built-in method startswith of unicode object at 0x7fbccb1990>('Omitting 1 identical item') >E + where <built-in method startswith of unicode object at 0x7fbccb1990> = '(pytest_assertion plugin: representation of details failed. Probably an object has a faulty __repr__.)'.startswith > >testing/test_assertion.py:680: AssertionError >____________________________________________________________________ TestAssert_reprcompare_attrsclass.test_attrs_verbose ____________________________________________________________________ > >self = <test_assertion.TestAssert_reprcompare_attrsclass object at 0x7fba449950> > > def test_attrs_verbose(self): > @attr.s > class SimpleDataObject(object): > field_a = attr.ib() > field_b = attr.ib() > > left = SimpleDataObject(1, "b") > right = SimpleDataObject(1, "c") > > lines = callequal(left, right, verbose=2) >> assert lines[1].startswith("Matching attributes:") >E AssertionError: assert False >E + where False = <built-in method startswith of unicode object at 0x7fbccb1990>('Matching attributes:') >E + where <built-in method startswith of unicode object at 0x7fbccb1990> = '(pytest_assertion plugin: representation of details failed. Probably an object has a faulty __repr__.)'.startswith > >testing/test_assertion.py:695: AssertionError >_________________________________________________________ TestAssert_reprcompare_attrsclass.test_attrs_with_attribute_comparison_off _________________________________________________________ > >self = <test_assertion.TestAssert_reprcompare_attrsclass object at 0x7fbbd19f90> > > def test_attrs_with_attribute_comparison_off(self): > @attr.s >> class SimpleDataObject(object): > >testing/test_assertion.py:701: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >testing/test_assertion.py:703: in SimpleDataObject > field_b = attr.ib(cmp=False) >/usr/lib64/python2.7/site-packages/attr/_make.py:195: in attrib > eq, order = _determine_eq_order(cmp, eq, order) >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >cmp = False, eq = None, order = None > > def _determine_eq_order(cmp, eq, order): > """ > Validate the combination of *cmp*, *eq*, and *order*. Derive the effective > values of eq and order. > """ > if cmp is not None and any((eq is not None, order is not None)): > raise ValueError("Don't mix `cmp` with `eq' and `order`.") > > # cmp takes precedence due to bw-compatibility. > if cmp is not None: >> warnings.warn(_CMP_DEPRECATION, DeprecationWarning, stacklevel=3) >E DeprecationWarning: The usage of `cmp` is deprecated and will be removed on or after 2021-06-01. Please use `eq` and `order` instead. > >/usr/lib64/python2.7/site-packages/attr/_make.py:750: DeprecationWarning >___________________________________________________________________ TestGeneralUsage.test_early_load_setuptools_name[True] ___________________________________________________________________ > >self = <acceptance_test.TestGeneralUsage object at 0x7fb9bdb6d0> >testdir = <Testdir local('/var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_early_load_setuptools_name0')> >monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fb9374a90>, load_cov_early = True > > @pytest.mark.parametrize("load_cov_early", [True, False]) > def test_early_load_setuptools_name(self, testdir, monkeypatch, load_cov_early): > pkg_resources = pytest.importorskip("pkg_resources") > > testdir.makepyfile(mytestplugin1_module="") > testdir.makepyfile(mytestplugin2_module="") > testdir.makepyfile(mycov_module="") > testdir.syspathinsert() > > loaded = [] > > @attr.s > class DummyEntryPoint(object): > name = attr.ib() > module = attr.ib() > version = "1.0" > > @property > def project_name(self): > return self.name > > def load(self): > __import__(self.module) > loaded.append(self.name) > return sys.modules[self.module] > > @property > def dist(self): > return self > > def _get_metadata(self, *args): > return [] > > entry_points = [ > DummyEntryPoint("myplugin1", "mytestplugin1_module"), > DummyEntryPoint("myplugin2", "mytestplugin2_module"), > DummyEntryPoint("mycov", "mycov_module"), > ] > > def my_iter(group, name=None): > assert group == "pytest11" > for ep in entry_points: > if name is not None and ep.name != name: > continue > yield ep > > monkeypatch.setattr(pkg_resources, "iter_entry_points", my_iter) > params = ("-p", "mycov") if load_cov_early else () > testdir.runpytest_inprocess(*params) > if load_cov_early: >> assert loaded == ["mycov", "myplugin1", "myplugin2"] >E AssertionError: assert [] == ['mycov', 'myplugin1', 'myplugin2'] >E Right contains 3 more items, first extra item: 'mycov' >E Use -v to get the full diff > >../../../../work/pytest-4.5.0/testing/acceptance_test.py:162: AssertionError >------------------------------------------------------------------------------------ Captured stderr call ------------------------------------------------------------------------------------ >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/pytester.py", line 885, in runpytest_inprocess > reprec = self.inline_run(*args, **kwargs) > File "/var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/pytester.py", line 851, in inline_run > ret = pytest.main(list(args), plugins=plugins) > File "/var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/config/__init__.py", line 60, in main > config = _prepareconfig(args, plugins) > File "/var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/config/__init__.py", line 190, in _prepareconfig > config = get_config(args) > File "/var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/config/__init__.py", line 161, in get_config > pluginmanager.consider_preparse(args) > File "/var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/config/__init__.py", line 496, in consider_preparse > self.consider_pluginarg(parg) > File "/var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/config/__init__.py", line 521, in consider_pluginarg > self.import_plugin(arg, consider_entry_points=True) > File "/var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/config/__init__.py", line 571, in import_plugin > six.reraise(ImportError, new_exc, tb) > File "/var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/config/__init__.py", line 562, in import_plugin > __import__(importspec) >ImportError: Error importing plugin "mycov": No module named mycov >__________________________________________________________________ TestGeneralUsage.test_early_load_setuptools_name[False] ___________________________________________________________________ > >self = <acceptance_test.TestGeneralUsage object at 0x7fb9910dd0> >testdir = <Testdir local('/var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_early_load_setuptools_name1')> >monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fb992bad0>, load_cov_early = False > > @pytest.mark.parametrize("load_cov_early", [True, False]) > def test_early_load_setuptools_name(self, testdir, monkeypatch, load_cov_early): > pkg_resources = pytest.importorskip("pkg_resources") > > testdir.makepyfile(mytestplugin1_module="") > testdir.makepyfile(mytestplugin2_module="") > testdir.makepyfile(mycov_module="") > testdir.syspathinsert() > > loaded = [] > > @attr.s > class DummyEntryPoint(object): > name = attr.ib() > module = attr.ib() > version = "1.0" > > @property > def project_name(self): > return self.name > > def load(self): > __import__(self.module) > loaded.append(self.name) > return sys.modules[self.module] > > @property > def dist(self): > return self > > def _get_metadata(self, *args): > return [] > > entry_points = [ > DummyEntryPoint("myplugin1", "mytestplugin1_module"), > DummyEntryPoint("myplugin2", "mytestplugin2_module"), > DummyEntryPoint("mycov", "mycov_module"), > ] > > def my_iter(group, name=None): > assert group == "pytest11" > for ep in entry_points: > if name is not None and ep.name != name: > continue > yield ep > > monkeypatch.setattr(pkg_resources, "iter_entry_points", my_iter) > params = ("-p", "mycov") if load_cov_early else () > testdir.runpytest_inprocess(*params) > if load_cov_early: > assert loaded == ["mycov", "myplugin1", "myplugin2"] > else: >> assert loaded == ["myplugin1", "myplugin2", "mycov"] >E AssertionError: assert [] == ['myplugin1', 'myplugin2', 'mycov'] >E Right contains 3 more items, first extra item: 'myplugin1' >E Use -v to get the full diff > >../../../../work/pytest-4.5.0/testing/acceptance_test.py:164: AssertionError >------------------------------------------------------------------------------------ Captured stdout call ------------------------------------------------------------------------------------ >==================================================================================== test session starts ===================================================================================== >platform linux2 -- Python 2.7.17, pytest-4.5.0, py-1.8.0, pluggy-0.13.1 >rootdir: /var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_early_load_setuptools_name1 >plugins: hypothesis-4.57.1, backports.unittest-mock-1.5, pyfakefs-3.7.2 >collected 0 items > >================================================================================ no tests ran in 0.02 seconds ================================================================================ >______________________________________________________________________________ test_frame_leak_on_failing_test _______________________________________________________________________________ > >testdir = <Testdir local('/var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_frame_leak_on_failing_test0')> > > def test_frame_leak_on_failing_test(testdir): > """pytest would leak garbage referencing the frames of tests that failed that could never be reclaimed (#2798) > > Unfortunately it was not possible to remove the actual circles because most of them > are made of traceback objects which cannot be weakly referenced. Those objects at least > can be eventually claimed by the garbage collector. > """ > testdir.makepyfile( > """ > import gc > import weakref > > class Obj: > pass > > ref = None > > def test1(): > obj = Obj() > global ref > ref = weakref.ref(obj) > assert 0 > > def test2(): > gc.collect() > assert ref() is None > """ > ) > result = testdir.runpytest_subprocess() >> result.stdout.fnmatch_lines(["*1 failed, 1 passed in*"]) >E Failed: nomatch: '*1 failed, 1 passed in*' >E and: u'==================================================================================== test session starts =====================================================================================' >E and: u'platform linux2 -- Python 2.7.17, pytest-4.5.0, py-1.8.0, pluggy-0.13.1' >E and: u'rootdir: /var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_frame_leak_on_failing_test0' >E and: u'plugins: hypothesis-4.57.1, backports.unittest-mock-1.5, pyfakefs-3.7.2' >E and: u'collected 2 items' >E and: u'' >E and: u'test_frame_leak_on_failing_test.py F. [100%]' >E and: u'' >E and: u'========================================================================================== FAILURES ==========================================================================================' >E and: u'___________________________________________________________________________________________ test1 ____________________________________________________________________________________________' >E and: u'' >E and: u' def test1():' >E and: u' obj = Obj()' >E and: u' global ref' >E and: u' ref = weakref.ref(obj)' >E and: u'> assert 0' >E and: u'E assert 0' >E and: u'' >E and: u'test_frame_leak_on_failing_test.py:13: AssertionError' >E and: u'====================================================================================== warnings summary ======================================================================================' >E and: u'/var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/config/__init__.py:781' >E and: u' /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/config/__init__.py:781: PytestAssertRewriteWarning: Module already imported so cannot be rewritten: backports' >E and: u' self._mark_plugins_for_rewrite(hook)' >E and: u'' >E and: u'-- Docs: https://docs.pytest.org/en/latest/warnings.html' >E and: u'======================================================================= 1 failed, 1 passed, 1 warnings in 0.16 seconds =======================================================================' >E remains unmatched: '*1 failed, 1 passed in*' > >../../../../work/pytest-4.5.0/testing/acceptance_test.py:1184: Failed >------------------------------------------------------------------------------------ Captured stdout call ------------------------------------------------------------------------------------ >running: /usr/bin/python2.7 -mpytest --basetemp=/var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_frame_leak_on_failing_test0/runpytest-0 > in: /var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_frame_leak_on_failing_test0 >==================================================================================== test session starts ===================================================================================== >platform linux2 -- Python 2.7.17, pytest-4.5.0, py-1.8.0, pluggy-0.13.1 >rootdir: /var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_frame_leak_on_failing_test0 >plugins: hypothesis-4.57.1, backports.unittest-mock-1.5, pyfakefs-3.7.2 >collected 2 items > >test_frame_leak_on_failing_test.py F. [100%] > >========================================================================================== FAILURES ========================================================================================== >___________________________________________________________________________________________ test1 ____________________________________________________________________________________________ > > def test1(): > obj = Obj() > global ref > ref = weakref.ref(obj) >> assert 0 >E assert 0 > >test_frame_leak_on_failing_test.py:13: AssertionError >====================================================================================== warnings summary ====================================================================================== >/var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/config/__init__.py:781 > /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/config/__init__.py:781: PytestAssertRewriteWarning: Module already imported so cannot be rewritten: backports > self._mark_plugins_for_rewrite(hook) > >-- Docs: https://docs.pytest.org/en/latest/warnings.html >======================================================================= 1 failed, 1 passed, 1 warnings in 0.16 seconds ======================================================================= >________________________________________________________ TestImportHookInstallation.test_installed_plugin_rewrite[development-plain] _________________________________________________________ > >self = <test_assertion.TestImportHookInstallation object at 0x7fb9d0cf50> >testdir = <Testdir local('/var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_installed_plugin_rewrite0')>, mode = 'plain', plugin_state = 'development' >monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fba4bc510> > > @pytest.mark.parametrize("mode", ["plain", "rewrite"]) > @pytest.mark.parametrize("plugin_state", ["development", "installed"]) > def test_installed_plugin_rewrite(self, testdir, mode, plugin_state, monkeypatch): > monkeypatch.delenv("PYTEST_DISABLE_PLUGIN_AUTOLOAD", raising=False) > # Make sure the hook is installed early enough so that plugins > # installed via setuptools are rewritten. > testdir.tmpdir.join("hampkg").ensure(dir=1) > contents = { > "hampkg/__init__.py": """ > import pytest > > @pytest.fixture > def check_first2(): > def check(values, value): > assert values.pop(0) == value > return check > """, > "spamplugin.py": """ > import pytest > from hampkg import check_first2 > > @pytest.fixture > def check_first(): > def check(values, value): > assert values.pop(0) == value > return check > """, > "mainwrapper.py": """ > import pytest, pkg_resources > > plugin_state = "{plugin_state}" > > class DummyDistInfo(object): > project_name = 'spam' > version = '1.0' > > def _get_metadata(self, name): > # 'RECORD' meta-data only available in installed plugins > if name == 'RECORD' and plugin_state == "installed": > return ['spamplugin.py,sha256=abc,123', > 'hampkg/__init__.py,sha256=abc,123'] > # 'SOURCES.txt' meta-data only available for plugins in development mode > elif name == 'SOURCES.txt' and plugin_state == "development": > return ['spamplugin.py', > 'hampkg/__init__.py'] > return [] > > class DummyEntryPoint(object): > name = 'spam' > module_name = 'spam.py' > attrs = () > extras = None > dist = DummyDistInfo() > > def load(self, require=True, *args, **kwargs): > import spamplugin > return spamplugin > > def iter_entry_points(group, name=None): > yield DummyEntryPoint() > > pkg_resources.iter_entry_points = iter_entry_points > pytest.main() > """.format( > plugin_state=plugin_state > ), > "test_foo.py": """ > def test(check_first): > check_first([10, 30], 30) > > def test2(check_first2): > check_first([10, 30], 30) > """, > } > testdir.makepyfile(**contents) > result = testdir.run( > sys.executable, "mainwrapper.py", "-s", "--assert=%s" % mode > ) > if mode == "plain": > expected = "E AssertionError" > elif mode == "rewrite": > expected = "*assert 10 == 30*" > else: > assert 0 >> result.stdout.fnmatch_lines([expected]) >E Failed: nomatch: 'E AssertionError' >E and: u'==================================================================================== test session starts =====================================================================================' >E and: u'platform linux2 -- Python 2.7.17, pytest-4.5.0, py-1.8.0, pluggy-0.13.1' >E and: u'rootdir: /var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_installed_plugin_rewrite0' >E and: u'plugins: hypothesis-4.57.1, backports.unittest-mock-1.5, pyfakefs-3.7.2' >E and: u'collected 2 items' >E and: u'' >E and: u'test_foo.py EE' >E and: u'' >E and: u'=========================================================================================== ERRORS ===========================================================================================' >E and: u'___________________________________________________________________________________ ERROR at setup of test ___________________________________________________________________________________' >E and: u'file /var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_installed_plugin_rewrite0/test_foo.py, line 1' >E and: u' def test(check_first):' >E and: u"E fixture 'check_first' not found" >E and: u'> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, fs, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory' >E and: u"> use 'pytest --fixtures [testpath]' for help on them." >E and: u'' >E and: u'/var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_installed_plugin_rewrite0/test_foo.py:1' >E and: u'__________________________________________________________________________________ ERROR at setup of test2 ___________________________________________________________________________________' >E and: u'file /var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_installed_plugin_rewrite0/test_foo.py, line 4' >E and: u' def test2(check_first2):' >E and: u"E fixture 'check_first2' not found" >E and: u'> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, fs, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory' >E and: u"> use 'pytest --fixtures [testpath]' for help on them." >E and: u'' >E and: u'/var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_installed_plugin_rewrite0/test_foo.py:4' >E and: u'================================================================================== 2 error in 0.06 seconds ===================================================================================' >E remains unmatched: 'E AssertionError' > >../../../../work/pytest-4.5.0/testing/test_assertion.py:239: Failed >------------------------------------------------------------------------------------ Captured stdout call ------------------------------------------------------------------------------------ >running: /usr/bin/python2.7 mainwrapper.py -s --assert=plain > in: /var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_installed_plugin_rewrite0 >==================================================================================== test session starts ===================================================================================== >platform linux2 -- Python 2.7.17, pytest-4.5.0, py-1.8.0, pluggy-0.13.1 >rootdir: /var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_installed_plugin_rewrite0 >plugins: hypothesis-4.57.1, backports.unittest-mock-1.5, pyfakefs-3.7.2 >collected 2 items > >test_foo.py EE > >=========================================================================================== ERRORS =========================================================================================== >___________________________________________________________________________________ ERROR at setup of test ___________________________________________________________________________________ >file /var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_installed_plugin_rewrite0/test_foo.py, line 1 > def test(check_first): >E fixture 'check_first' not found >> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, fs, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory >> use 'pytest --fixtures [testpath]' for help on them. > >/var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_installed_plugin_rewrite0/test_foo.py:1 >__________________________________________________________________________________ ERROR at setup of test2 ___________________________________________________________________________________ >file /var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_installed_plugin_rewrite0/test_foo.py, line 4 > def test2(check_first2): >E fixture 'check_first2' not found >> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, fs, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory >> use 'pytest --fixtures [testpath]' for help on them. > >/var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_installed_plugin_rewrite0/test_foo.py:4 >================================================================================== 2 error in 0.06 seconds =================================================================================== >_______________________________________________________ TestImportHookInstallation.test_installed_plugin_rewrite[development-rewrite] ________________________________________________________ > >self = <test_assertion.TestImportHookInstallation object at 0x7fb914e510> >testdir = <Testdir local('/var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_installed_plugin_rewrite1')>, mode = 'rewrite', plugin_state = 'development' >monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fb914ec90> > > @pytest.mark.parametrize("mode", ["plain", "rewrite"]) > @pytest.mark.parametrize("plugin_state", ["development", "installed"]) > def test_installed_plugin_rewrite(self, testdir, mode, plugin_state, monkeypatch): > monkeypatch.delenv("PYTEST_DISABLE_PLUGIN_AUTOLOAD", raising=False) > # Make sure the hook is installed early enough so that plugins > # installed via setuptools are rewritten. > testdir.tmpdir.join("hampkg").ensure(dir=1) > contents = { > "hampkg/__init__.py": """ > import pytest > > @pytest.fixture > def check_first2(): > def check(values, value): > assert values.pop(0) == value > return check > """, > "spamplugin.py": """ > import pytest > from hampkg import check_first2 > > @pytest.fixture > def check_first(): > def check(values, value): > assert values.pop(0) == value > return check > """, > "mainwrapper.py": """ > import pytest, pkg_resources > > plugin_state = "{plugin_state}" > > class DummyDistInfo(object): > project_name = 'spam' > version = '1.0' > > def _get_metadata(self, name): > # 'RECORD' meta-data only available in installed plugins > if name == 'RECORD' and plugin_state == "installed": > return ['spamplugin.py,sha256=abc,123', > 'hampkg/__init__.py,sha256=abc,123'] > # 'SOURCES.txt' meta-data only available for plugins in development mode > elif name == 'SOURCES.txt' and plugin_state == "development": > return ['spamplugin.py', > 'hampkg/__init__.py'] > return [] > > class DummyEntryPoint(object): > name = 'spam' > module_name = 'spam.py' > attrs = () > extras = None > dist = DummyDistInfo() > > def load(self, require=True, *args, **kwargs): > import spamplugin > return spamplugin > > def iter_entry_points(group, name=None): > yield DummyEntryPoint() > > pkg_resources.iter_entry_points = iter_entry_points > pytest.main() > """.format( > plugin_state=plugin_state > ), > "test_foo.py": """ > def test(check_first): > check_first([10, 30], 30) > > def test2(check_first2): > check_first([10, 30], 30) > """, > } > testdir.makepyfile(**contents) > result = testdir.run( > sys.executable, "mainwrapper.py", "-s", "--assert=%s" % mode > ) > if mode == "plain": > expected = "E AssertionError" > elif mode == "rewrite": > expected = "*assert 10 == 30*" > else: > assert 0 >> result.stdout.fnmatch_lines([expected]) >E Failed: nomatch: '*assert 10 == 30*' >E and: u'==================================================================================== test session starts =====================================================================================' >E and: u'platform linux2 -- Python 2.7.17, pytest-4.5.0, py-1.8.0, pluggy-0.13.1' >E and: u'rootdir: /var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_installed_plugin_rewrite1' >E and: u'plugins: hypothesis-4.57.1, backports.unittest-mock-1.5, pyfakefs-3.7.2' >E and: u'collected 2 items' >E and: u'' >E and: u'test_foo.py EE' >E and: u'' >E and: u'=========================================================================================== ERRORS ===========================================================================================' >E and: u'___________________________________________________________________________________ ERROR at setup of test ___________________________________________________________________________________' >E and: u'file /var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_installed_plugin_rewrite1/test_foo.py, line 1' >E and: u' def test(check_first):' >E and: u"E fixture 'check_first' not found" >E and: u'> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, fs, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory' >E and: u"> use 'pytest --fixtures [testpath]' for help on them." >E and: u'' >E and: u'/var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_installed_plugin_rewrite1/test_foo.py:1' >E and: u'__________________________________________________________________________________ ERROR at setup of test2 ___________________________________________________________________________________' >E and: u'file /var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_installed_plugin_rewrite1/test_foo.py, line 4' >E and: u' def test2(check_first2):' >E and: u"E fixture 'check_first2' not found" >E and: u'> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, fs, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory' >E and: u"> use 'pytest --fixtures [testpath]' for help on them." >E and: u'' >E and: u'/var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_installed_plugin_rewrite1/test_foo.py:4' >E and: u'================================================================================== 2 error in 0.06 seconds ===================================================================================' >E remains unmatched: '*assert 10 == 30*' > >../../../../work/pytest-4.5.0/testing/test_assertion.py:239: Failed >------------------------------------------------------------------------------------ Captured stdout call ------------------------------------------------------------------------------------ >running: /usr/bin/python2.7 mainwrapper.py -s --assert=rewrite > in: /var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_installed_plugin_rewrite1 >==================================================================================== test session starts ===================================================================================== >platform linux2 -- Python 2.7.17, pytest-4.5.0, py-1.8.0, pluggy-0.13.1 >rootdir: /var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_installed_plugin_rewrite1 >plugins: hypothesis-4.57.1, backports.unittest-mock-1.5, pyfakefs-3.7.2 >collected 2 items > >test_foo.py EE > >=========================================================================================== ERRORS =========================================================================================== >___________________________________________________________________________________ ERROR at setup of test ___________________________________________________________________________________ >file /var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_installed_plugin_rewrite1/test_foo.py, line 1 > def test(check_first): >E fixture 'check_first' not found >> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, fs, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory >> use 'pytest --fixtures [testpath]' for help on them. > >/var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_installed_plugin_rewrite1/test_foo.py:1 >__________________________________________________________________________________ ERROR at setup of test2 ___________________________________________________________________________________ >file /var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_installed_plugin_rewrite1/test_foo.py, line 4 > def test2(check_first2): >E fixture 'check_first2' not found >> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, fs, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory >> use 'pytest --fixtures [testpath]' for help on them. > >/var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_installed_plugin_rewrite1/test_foo.py:4 >================================================================================== 2 error in 0.06 seconds =================================================================================== >_________________________________________________________ TestImportHookInstallation.test_installed_plugin_rewrite[installed-plain] __________________________________________________________ > >self = <test_assertion.TestImportHookInstallation object at 0x7fb9d7bbd0> >testdir = <Testdir local('/var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_installed_plugin_rewrite2')>, mode = 'plain', plugin_state = 'installed' >monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fb997c450> > > @pytest.mark.parametrize("mode", ["plain", "rewrite"]) > @pytest.mark.parametrize("plugin_state", ["development", "installed"]) > def test_installed_plugin_rewrite(self, testdir, mode, plugin_state, monkeypatch): > monkeypatch.delenv("PYTEST_DISABLE_PLUGIN_AUTOLOAD", raising=False) > # Make sure the hook is installed early enough so that plugins > # installed via setuptools are rewritten. > testdir.tmpdir.join("hampkg").ensure(dir=1) > contents = { > "hampkg/__init__.py": """ > import pytest > > @pytest.fixture > def check_first2(): > def check(values, value): > assert values.pop(0) == value > return check > """, > "spamplugin.py": """ > import pytest > from hampkg import check_first2 > > @pytest.fixture > def check_first(): > def check(values, value): > assert values.pop(0) == value > return check > """, > "mainwrapper.py": """ > import pytest, pkg_resources > > plugin_state = "{plugin_state}" > > class DummyDistInfo(object): > project_name = 'spam' > version = '1.0' > > def _get_metadata(self, name): > # 'RECORD' meta-data only available in installed plugins > if name == 'RECORD' and plugin_state == "installed": > return ['spamplugin.py,sha256=abc,123', > 'hampkg/__init__.py,sha256=abc,123'] > # 'SOURCES.txt' meta-data only available for plugins in development mode > elif name == 'SOURCES.txt' and plugin_state == "development": > return ['spamplugin.py', > 'hampkg/__init__.py'] > return [] > > class DummyEntryPoint(object): > name = 'spam' > module_name = 'spam.py' > attrs = () > extras = None > dist = DummyDistInfo() > > def load(self, require=True, *args, **kwargs): > import spamplugin > return spamplugin > > def iter_entry_points(group, name=None): > yield DummyEntryPoint() > > pkg_resources.iter_entry_points = iter_entry_points > pytest.main() > """.format( > plugin_state=plugin_state > ), > "test_foo.py": """ > def test(check_first): > check_first([10, 30], 30) > > def test2(check_first2): > check_first([10, 30], 30) > """, > } > testdir.makepyfile(**contents) > result = testdir.run( > sys.executable, "mainwrapper.py", "-s", "--assert=%s" % mode > ) > if mode == "plain": > expected = "E AssertionError" > elif mode == "rewrite": > expected = "*assert 10 == 30*" > else: > assert 0 >> result.stdout.fnmatch_lines([expected]) >E Failed: nomatch: 'E AssertionError' >E and: u'==================================================================================== test session starts =====================================================================================' >E and: u'platform linux2 -- Python 2.7.17, pytest-4.5.0, py-1.8.0, pluggy-0.13.1' >E and: u'rootdir: /var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_installed_plugin_rewrite2' >E and: u'plugins: hypothesis-4.57.1, backports.unittest-mock-1.5, pyfakefs-3.7.2' >E and: u'collected 2 items' >E and: u'' >E and: u'test_foo.py EE' >E and: u'' >E and: u'=========================================================================================== ERRORS ===========================================================================================' >E and: u'___________________________________________________________________________________ ERROR at setup of test ___________________________________________________________________________________' >E and: u'file /var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_installed_plugin_rewrite2/test_foo.py, line 1' >E and: u' def test(check_first):' >E and: u"E fixture 'check_first' not found" >E and: u'> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, fs, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory' >E and: u"> use 'pytest --fixtures [testpath]' for help on them." >E and: u'' >E and: u'/var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_installed_plugin_rewrite2/test_foo.py:1' >E and: u'__________________________________________________________________________________ ERROR at setup of test2 ___________________________________________________________________________________' >E and: u'file /var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_installed_plugin_rewrite2/test_foo.py, line 4' >E and: u' def test2(check_first2):' >E and: u"E fixture 'check_first2' not found" >E and: u'> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, fs, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory' >E and: u"> use 'pytest --fixtures [testpath]' for help on them." >E and: u'' >E and: u'/var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_installed_plugin_rewrite2/test_foo.py:4' >E and: u'================================================================================== 2 error in 0.06 seconds ===================================================================================' >E remains unmatched: 'E AssertionError' > >../../../../work/pytest-4.5.0/testing/test_assertion.py:239: Failed >------------------------------------------------------------------------------------ Captured stdout call ------------------------------------------------------------------------------------ >running: /usr/bin/python2.7 mainwrapper.py -s --assert=plain > in: /var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_installed_plugin_rewrite2 >==================================================================================== test session starts ===================================================================================== >platform linux2 -- Python 2.7.17, pytest-4.5.0, py-1.8.0, pluggy-0.13.1 >rootdir: /var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_installed_plugin_rewrite2 >plugins: hypothesis-4.57.1, backports.unittest-mock-1.5, pyfakefs-3.7.2 >collected 2 items > >test_foo.py EE > >=========================================================================================== ERRORS =========================================================================================== >___________________________________________________________________________________ ERROR at setup of test ___________________________________________________________________________________ >file /var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_installed_plugin_rewrite2/test_foo.py, line 1 > def test(check_first): >E fixture 'check_first' not found >> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, fs, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory >> use 'pytest --fixtures [testpath]' for help on them. > >/var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_installed_plugin_rewrite2/test_foo.py:1 >__________________________________________________________________________________ ERROR at setup of test2 ___________________________________________________________________________________ >file /var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_installed_plugin_rewrite2/test_foo.py, line 4 > def test2(check_first2): >E fixture 'check_first2' not found >> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, fs, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory >> use 'pytest --fixtures [testpath]' for help on them. > >/var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_installed_plugin_rewrite2/test_foo.py:4 >================================================================================== 2 error in 0.06 seconds =================================================================================== >________________________________________________________ TestImportHookInstallation.test_installed_plugin_rewrite[installed-rewrite] _________________________________________________________ > >self = <test_assertion.TestImportHookInstallation object at 0x7fb9d81a10> >testdir = <Testdir local('/var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_installed_plugin_rewrite3')>, mode = 'rewrite', plugin_state = 'installed' >monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fb9d83390> > > @pytest.mark.parametrize("mode", ["plain", "rewrite"]) > @pytest.mark.parametrize("plugin_state", ["development", "installed"]) > def test_installed_plugin_rewrite(self, testdir, mode, plugin_state, monkeypatch): > monkeypatch.delenv("PYTEST_DISABLE_PLUGIN_AUTOLOAD", raising=False) > # Make sure the hook is installed early enough so that plugins > # installed via setuptools are rewritten. > testdir.tmpdir.join("hampkg").ensure(dir=1) > contents = { > "hampkg/__init__.py": """ > import pytest > > @pytest.fixture > def check_first2(): > def check(values, value): > assert values.pop(0) == value > return check > """, > "spamplugin.py": """ > import pytest > from hampkg import check_first2 > > @pytest.fixture > def check_first(): > def check(values, value): > assert values.pop(0) == value > return check > """, > "mainwrapper.py": """ > import pytest, pkg_resources > > plugin_state = "{plugin_state}" > > class DummyDistInfo(object): > project_name = 'spam' > version = '1.0' > > def _get_metadata(self, name): > # 'RECORD' meta-data only available in installed plugins > if name == 'RECORD' and plugin_state == "installed": > return ['spamplugin.py,sha256=abc,123', > 'hampkg/__init__.py,sha256=abc,123'] > # 'SOURCES.txt' meta-data only available for plugins in development mode > elif name == 'SOURCES.txt' and plugin_state == "development": > return ['spamplugin.py', > 'hampkg/__init__.py'] > return [] > > class DummyEntryPoint(object): > name = 'spam' > module_name = 'spam.py' > attrs = () > extras = None > dist = DummyDistInfo() > > def load(self, require=True, *args, **kwargs): > import spamplugin > return spamplugin > > def iter_entry_points(group, name=None): > yield DummyEntryPoint() > > pkg_resources.iter_entry_points = iter_entry_points > pytest.main() > """.format( > plugin_state=plugin_state > ), > "test_foo.py": """ > def test(check_first): > check_first([10, 30], 30) > > def test2(check_first2): > check_first([10, 30], 30) > """, > } > testdir.makepyfile(**contents) > result = testdir.run( > sys.executable, "mainwrapper.py", "-s", "--assert=%s" % mode > ) > if mode == "plain": > expected = "E AssertionError" > elif mode == "rewrite": > expected = "*assert 10 == 30*" > else: > assert 0 >> result.stdout.fnmatch_lines([expected]) >E Failed: nomatch: '*assert 10 == 30*' >E and: u'==================================================================================== test session starts =====================================================================================' >E and: u'platform linux2 -- Python 2.7.17, pytest-4.5.0, py-1.8.0, pluggy-0.13.1' >E and: u'rootdir: /var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_installed_plugin_rewrite3' >E and: u'plugins: hypothesis-4.57.1, backports.unittest-mock-1.5, pyfakefs-3.7.2' >E and: u'collected 2 items' >E and: u'' >E and: u'test_foo.py EE' >E and: u'' >E and: u'=========================================================================================== ERRORS ===========================================================================================' >E and: u'___________________________________________________________________________________ ERROR at setup of test ___________________________________________________________________________________' >E and: u'file /var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_installed_plugin_rewrite3/test_foo.py, line 1' >E and: u' def test(check_first):' >E and: u"E fixture 'check_first' not found" >E and: u'> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, fs, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory' >E and: u"> use 'pytest --fixtures [testpath]' for help on them." >E and: u'' >E and: u'/var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_installed_plugin_rewrite3/test_foo.py:1' >E and: u'__________________________________________________________________________________ ERROR at setup of test2 ___________________________________________________________________________________' >E and: u'file /var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_installed_plugin_rewrite3/test_foo.py, line 4' >E and: u' def test2(check_first2):' >E and: u"E fixture 'check_first2' not found" >E and: u'> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, fs, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory' >E and: u"> use 'pytest --fixtures [testpath]' for help on them." >E and: u'' >E and: u'/var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_installed_plugin_rewrite3/test_foo.py:4' >E and: u'================================================================================== 2 error in 0.06 seconds ===================================================================================' >E remains unmatched: '*assert 10 == 30*' > >../../../../work/pytest-4.5.0/testing/test_assertion.py:239: Failed >------------------------------------------------------------------------------------ Captured stdout call ------------------------------------------------------------------------------------ >running: /usr/bin/python2.7 mainwrapper.py -s --assert=rewrite > in: /var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_installed_plugin_rewrite3 >==================================================================================== test session starts ===================================================================================== >platform linux2 -- Python 2.7.17, pytest-4.5.0, py-1.8.0, pluggy-0.13.1 >rootdir: /var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_installed_plugin_rewrite3 >plugins: hypothesis-4.57.1, backports.unittest-mock-1.5, pyfakefs-3.7.2 >collected 2 items > >test_foo.py EE > >=========================================================================================== ERRORS =========================================================================================== >___________________________________________________________________________________ ERROR at setup of test ___________________________________________________________________________________ >file /var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_installed_plugin_rewrite3/test_foo.py, line 1 > def test(check_first): >E fixture 'check_first' not found >> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, fs, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory >> use 'pytest --fixtures [testpath]' for help on them. > >/var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_installed_plugin_rewrite3/test_foo.py:1 >__________________________________________________________________________________ ERROR at setup of test2 ___________________________________________________________________________________ >file /var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_installed_plugin_rewrite3/test_foo.py, line 4 > def test2(check_first2): >E fixture 'check_first2' not found >> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, fs, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory >> use 'pytest --fixtures [testpath]' for help on them. > >/var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_installed_plugin_rewrite3/test_foo.py:4 >================================================================================== 2 error in 0.06 seconds =================================================================================== >_______________________________________________________________________ TestAssertionRewrite.test_dont_rewrite_plugin ________________________________________________________________________ > >self = <test_assertrewrite.TestAssertionRewrite object at 0x7fb9669a90> >testdir = <Testdir local('/var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_dont_rewrite_plugin0')> > > def test_dont_rewrite_plugin(self, testdir): > contents = { > "conftest.py": "pytest_plugins = 'plugin'; import plugin", > "plugin.py": "'PYTEST_DONT_REWRITE'", > "test_foo.py": "def test_foo(): pass", > } > testdir.makepyfile(**contents) > result = testdir.runpytest_subprocess() >> assert "warnings" not in "".join(result.outlines) >E AssertionError: assert 'warnings' not in '=====================...=====================' >E 'warnings' is contained here: >E ========= warnings summary ======================================================================================/var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/config/__init__.py:781 /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/config/__init__.py:781: PytestAssertRewriteWarning: Module already imported so cannot be rewritten: backports self._mark_plugins_for_rewrite(hook)-- Docs: https://docs.pytest.org/en/latest/warnings.html========================================... >E >E ...Full output truncated (2 lines hidden), use '-vv' to show > >../../../../work/pytest-4.5.0/testing/test_assertrewrite.py:128: AssertionError >------------------------------------------------------------------------------------ Captured stdout call ------------------------------------------------------------------------------------ >running: /usr/bin/python2.7 -mpytest --basetemp=/var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_dont_rewrite_plugin0/runpytest-0 > in: /var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_dont_rewrite_plugin0 >==================================================================================== test session starts ===================================================================================== >platform linux2 -- Python 2.7.17, pytest-4.5.0, py-1.8.0, pluggy-0.13.1 >rootdir: /var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_dont_rewrite_plugin0 >plugins: hypothesis-4.57.1, backports.unittest-mock-1.5, pyfakefs-3.7.2 >collected 1 item > >test_foo.py . [100%] > >====================================================================================== warnings summary ====================================================================================== >/var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/config/__init__.py:781 > /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/config/__init__.py:781: PytestAssertRewriteWarning: Module already imported so cannot be rewritten: backports > self._mark_plugins_for_rewrite(hook) > >-- Docs: https://docs.pytest.org/en/latest/warnings.html >============================================================================ 1 passed, 1 warnings in 0.05 seconds ============================================================================ >_______________________________________________________________ TestRewriteOnImport.test_rewrite_warning_using_pytest_plugins ________________________________________________________________ > >self = <test_assertrewrite.TestRewriteOnImport object at 0x7fb953c4d0> >testdir = <Testdir local('/var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_rewrite_warning_using_pytest_plugins0')> > > def test_rewrite_warning_using_pytest_plugins(self, testdir): > testdir.makepyfile( > **{ > "conftest.py": "pytest_plugins = ['core', 'gui', 'sci']", > "core.py": "", > "gui.py": "pytest_plugins = ['core', 'sci']", > "sci.py": "pytest_plugins = ['core']", > "test_rewrite_warning_pytest_plugins.py": "def test(): pass", > } > ) > testdir.chdir() > result = testdir.runpytest_subprocess() >> result.stdout.fnmatch_lines(["*= 1 passed in *=*"]) >E Failed: nomatch: '*= 1 passed in *=*' >E and: u'==================================================================================== test session starts =====================================================================================' >E and: u'platform linux2 -- Python 2.7.17, pytest-4.5.0, py-1.8.0, pluggy-0.13.1' >E and: u'rootdir: /var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_rewrite_warning_using_pytest_plugins0' >E and: u'plugins: hypothesis-4.57.1, backports.unittest-mock-1.5, pyfakefs-3.7.2' >E and: u'collected 1 item' >E and: u'' >E and: u'test_rewrite_warning_pytest_plugins.py . [100%]' >E and: u'' >E and: u'====================================================================================== warnings summary ======================================================================================' >E and: u'/var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/config/__init__.py:781' >E and: u' /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/config/__init__.py:781: PytestAssertRewriteWarning: Module already imported so cannot be rewritten: backports' >E and: u' self._mark_plugins_for_rewrite(hook)' >E and: u'' >E and: u'-- Docs: https://docs.pytest.org/en/latest/warnings.html' >E and: u'============================================================================ 1 passed, 1 warnings in 0.05 seconds ============================================================================' >E remains unmatched: '*= 1 passed in *=*' > >../../../../work/pytest-4.5.0/testing/test_assertrewrite.py:880: Failed >------------------------------------------------------------------------------------ Captured stdout call ------------------------------------------------------------------------------------ >running: /usr/bin/python2.7 -mpytest --basetemp=/var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_rewrite_warning_using_pytest_plugins0/runpytest-0 > in: /var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_rewrite_warning_using_pytest_plugins0 >==================================================================================== test session starts ===================================================================================== >platform linux2 -- Python 2.7.17, pytest-4.5.0, py-1.8.0, pluggy-0.13.1 >rootdir: /var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_rewrite_warning_using_pytest_plugins0 >plugins: hypothesis-4.57.1, backports.unittest-mock-1.5, pyfakefs-3.7.2 >collected 1 item > >test_rewrite_warning_pytest_plugins.py . [100%] > >====================================================================================== warnings summary ====================================================================================== >/var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/config/__init__.py:781 > /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/config/__init__.py:781: PytestAssertRewriteWarning: Module already imported so cannot be rewritten: backports > self._mark_plugins_for_rewrite(hook) > >-- Docs: https://docs.pytest.org/en/latest/warnings.html >============================================================================ 1 passed, 1 warnings in 0.05 seconds ============================================================================ >___________________________________________________________ TestRewriteOnImport.test_rewrite_warning_using_pytest_plugins_env_var ____________________________________________________________ > >self = <test_assertrewrite.TestRewriteOnImport object at 0x7fb950c350> >testdir = <Testdir local('/var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_rewrite_warning_using_pytest_plugins_env_var0')> >monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fb95104d0> > > def test_rewrite_warning_using_pytest_plugins_env_var(self, testdir, monkeypatch): > monkeypatch.setenv("PYTEST_PLUGINS", "plugin") > testdir.makepyfile( > **{ > "plugin.py": "", > "test_rewrite_warning_using_pytest_plugins_env_var.py": """ > import plugin > pytest_plugins = ['plugin'] > def test(): > pass > """, > } > ) > testdir.chdir() > result = testdir.runpytest_subprocess() >> result.stdout.fnmatch_lines(["*= 1 passed in *=*"]) >E Failed: nomatch: '*= 1 passed in *=*' >E and: u'==================================================================================== test session starts =====================================================================================' >E and: u'platform linux2 -- Python 2.7.17, pytest-4.5.0, py-1.8.0, pluggy-0.13.1' >E and: u'rootdir: /var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_rewrite_warning_using_pytest_plugins_env_var0' >E and: u'plugins: hypothesis-4.57.1, backports.unittest-mock-1.5, pyfakefs-3.7.2' >E and: u'collected 1 item' >E and: u'' >E and: u'test_rewrite_warning_using_pytest_plugins_env_var.py . [100%]' >E and: u'' >E and: u'====================================================================================== warnings summary ======================================================================================' >E and: u'/var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/config/__init__.py:781' >E and: u' /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/config/__init__.py:781: PytestAssertRewriteWarning: Module already imported so cannot be rewritten: backports' >E and: u' self._mark_plugins_for_rewrite(hook)' >E and: u'' >E and: u'-- Docs: https://docs.pytest.org/en/latest/warnings.html' >E and: u'============================================================================ 1 passed, 1 warnings in 0.05 seconds ============================================================================' >E remains unmatched: '*= 1 passed in *=*' > >../../../../work/pytest-4.5.0/testing/test_assertrewrite.py:898: Failed >------------------------------------------------------------------------------------ Captured stdout call ------------------------------------------------------------------------------------ >running: /usr/bin/python2.7 -mpytest --basetemp=/var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_rewrite_warning_using_pytest_plugins_env_var0/runpytest-0 > in: /var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_rewrite_warning_using_pytest_plugins_env_var0 >==================================================================================== test session starts ===================================================================================== >platform linux2 -- Python 2.7.17, pytest-4.5.0, py-1.8.0, pluggy-0.13.1 >rootdir: /var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_rewrite_warning_using_pytest_plugins_env_var0 >plugins: hypothesis-4.57.1, backports.unittest-mock-1.5, pyfakefs-3.7.2 >collected 1 item > >test_rewrite_warning_using_pytest_plugins_env_var.py . [100%] > >====================================================================================== warnings summary ====================================================================================== >/var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/config/__init__.py:781 > /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/config/__init__.py:781: PytestAssertRewriteWarning: Module already imported so cannot be rewritten: backports > self._mark_plugins_for_rewrite(hook) > >-- Docs: https://docs.pytest.org/en/latest/warnings.html >============================================================================ 1 passed, 1 warnings in 0.05 seconds ============================================================================ >_____________________________________________________________________________ test_collect_pyargs_with_testpaths _____________________________________________________________________________ > >testdir = <Testdir local('/var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_collect_pyargs_with_testpaths0')> >monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fba73e490> > > def test_collect_pyargs_with_testpaths(testdir, monkeypatch): > testmod = testdir.mkdir("testmod") > # NOTE: __init__.py is not collected since it does not match python_files. > testmod.ensure("__init__.py").write("def test_func(): pass") > testmod.ensure("test_file.py").write("def test_func(): pass") > > root = testdir.mkdir("root") > root.ensure("pytest.ini").write( > textwrap.dedent( > """ > [pytest] > addopts = --pyargs > testpaths = testmod > """ > ) > ) > monkeypatch.setenv("PYTHONPATH", str(testdir.tmpdir), prepend=os.pathsep) > with root.as_cwd(): > result = testdir.runpytest_subprocess() >> result.stdout.fnmatch_lines(["*1 passed in*"]) >E Failed: nomatch: '*1 passed in*' >E and: u'==================================================================================== test session starts =====================================================================================' >E and: u'platform linux2 -- Python 2.7.17, pytest-4.5.0, py-1.8.0, pluggy-0.13.1' >E and: u'rootdir: /var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_collect_pyargs_with_testpaths0/root, inifile: pytest.ini, testpaths: testmod' >E and: u'plugins: hypothesis-4.57.1, backports.unittest-mock-1.5, pyfakefs-3.7.2' >E and: u'collected 1 item' >E and: u'' >E and: u'test_file.py . [100%]' >E and: u'' >E and: u'====================================================================================== warnings summary ======================================================================================' >E and: u'/var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/config/__init__.py:781' >E and: u' /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/config/__init__.py:781: PytestAssertRewriteWarning: Module already imported so cannot be rewritten: backports' >E and: u' self._mark_plugins_for_rewrite(hook)' >E and: u'' >E and: u'-- Docs: https://docs.pytest.org/en/latest/warnings.html' >E and: u'============================================================================ 1 passed, 1 warnings in 0.05 seconds ============================================================================' >E remains unmatched: '*1 passed in*' > >../../../../work/pytest-4.5.0/testing/test_collection.py:1116: Failed >------------------------------------------------------------------------------------ Captured stdout call ------------------------------------------------------------------------------------ >running: /usr/bin/python2.7 -mpytest --basetemp=/var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_collect_pyargs_with_testpaths0/runpytest-0 > in: /var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_collect_pyargs_with_testpaths0/root >==================================================================================== test session starts ===================================================================================== >platform linux2 -- Python 2.7.17, pytest-4.5.0, py-1.8.0, pluggy-0.13.1 >rootdir: /var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_collect_pyargs_with_testpaths0/root, inifile: pytest.ini, testpaths: testmod >plugins: hypothesis-4.57.1, backports.unittest-mock-1.5, pyfakefs-3.7.2 >collected 1 item > >test_file.py . [100%] > >====================================================================================== warnings summary ====================================================================================== >/var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/config/__init__.py:781 > /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/config/__init__.py:781: PytestAssertRewriteWarning: Module already imported so cannot be rewritten: backports > self._mark_plugins_for_rewrite(hook) > >-- Docs: https://docs.pytest.org/en/latest/warnings.html >============================================================================ 1 passed, 1 warnings in 0.05 seconds ============================================================================ >___________________________________________________________________________ test_preparse_ordering_with_setuptools ___________________________________________________________________________ > >testdir = <Testdir local('/var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_preparse_ordering_with_setuptools0')> >monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fb961f3d0> > > def test_preparse_ordering_with_setuptools(testdir, monkeypatch): > pkg_resources = pytest.importorskip("pkg_resources") > monkeypatch.delenv("PYTEST_DISABLE_PLUGIN_AUTOLOAD", raising=False) > > def my_iter(group, name=None): > assert group == "pytest11" > > class Dist(object): > project_name = "spam" > version = "1.0" > > def _get_metadata(self, name): > return ["foo.txt,sha256=abc,123"] > > class EntryPoint(object): > name = "mytestplugin" > dist = Dist() > > def load(self): > class PseudoPlugin(object): > x = 42 > > return PseudoPlugin() > > return iter([EntryPoint()]) > > monkeypatch.setattr(pkg_resources, "iter_entry_points", my_iter) > testdir.makeconftest( > """ > pytest_plugins = "mytestplugin", > """ > ) > monkeypatch.setenv("PYTEST_PLUGINS", "mytestplugin") >> config = testdir.parseconfig() > >../../../../work/pytest-4.5.0/testing/test_config.py:566: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >../../../../work/pytest-4.5.0-python2_7/lib/_pytest/pytester.py:940: in parseconfig > config = _pytest.config._prepareconfig(args, self.plugins) >../../../../work/pytest-4.5.0-python2_7/lib/_pytest/config/__init__.py:204: in _prepareconfig > pluginmanager=pluginmanager, args=args >/usr/lib64/python2.7/site-packages/pluggy/hooks.py:286: in __call__ > return self._hookexec(self, self.get_hookimpls(), kwargs) >/usr/lib64/python2.7/site-packages/pluggy/manager.py:93: in _hookexec > return self._inner_hookexec(hook, methods, kwargs) >/usr/lib64/python2.7/site-packages/pluggy/manager.py:87: in <lambda> > firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, >../../../../work/pytest-4.5.0-python2_7/lib/_pytest/helpconfig.py:93: in pytest_cmdline_parse > config = outcome.get_result() >../../../../work/pytest-4.5.0-python2_7/lib/_pytest/config/__init__.py:684: in pytest_cmdline_parse > self.parse(args) >../../../../work/pytest-4.5.0-python2_7/lib/_pytest/config/__init__.py:901: in parse > self._preparse(args, addopts=addopts) >../../../../work/pytest-4.5.0-python2_7/lib/_pytest/config/__init__.py:847: in _preparse > self.pluginmanager.consider_env() >../../../../work/pytest-4.5.0-python2_7/lib/_pytest/config/__init__.py:527: in consider_env > self._import_plugin_specs(os.environ.get("PYTEST_PLUGINS")) >../../../../work/pytest-4.5.0-python2_7/lib/_pytest/config/__init__.py:535: in _import_plugin_specs > self.import_plugin(import_spec) >../../../../work/pytest-4.5.0-python2_7/lib/_pytest/config/__init__.py:571: in import_plugin > six.reraise(ImportError, new_exc, tb) >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <_pytest.config.PytestPluginManager object at 0x7fb9c55c90>, modname = 'mytestplugin', consider_entry_points = False > > def import_plugin(self, modname, consider_entry_points=False): > """ > Imports a plugin with ``modname``. If ``consider_entry_points`` is True, entry point > names are also considered to find a plugin. > """ > # most often modname refers to builtin modules, e.g. "pytester", > # "terminal" or "capture". Those plugins are registered under their > # basename for historic purposes but must be imported with the > # _pytest prefix. > assert isinstance(modname, six.string_types), ( > "module name as text required, got %r" % modname > ) > modname = str(modname) > if self.is_blocked(modname) or self.get_plugin(modname) is not None: > return > > importspec = "_pytest." + modname if modname in builtin_plugins else modname > self.rewrite_hook.mark_rewrite(importspec) > > if consider_entry_points: > loaded = self.load_setuptools_entrypoints("pytest11", name=modname) > if loaded: > return > > try: >> __import__(importspec) >E ImportError: Error importing plugin "mytestplugin": No module named mytestplugin > >../../../../work/pytest-4.5.0-python2_7/lib/_pytest/config/__init__.py:562: ImportError >___________________________________________________________________________ test_setuptools_importerror_issue1479 ____________________________________________________________________________ > >testdir = <Testdir local('/var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_setuptools_importerror_issue14790')> >monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fb8ef6750> > > def test_setuptools_importerror_issue1479(testdir, monkeypatch): > pkg_resources = pytest.importorskip("pkg_resources") > monkeypatch.delenv("PYTEST_DISABLE_PLUGIN_AUTOLOAD", raising=False) > > def my_iter(group, name=None): > assert group == "pytest11" > > class Dist(object): > project_name = "spam" > version = "1.0" > > def _get_metadata(self, name): > return ["foo.txt,sha256=abc,123"] > > class EntryPoint(object): > name = "mytestplugin" > dist = Dist() > > def load(self): > raise ImportError("Don't hide me!") > > return iter([EntryPoint()]) > > monkeypatch.setattr(pkg_resources, "iter_entry_points", my_iter) > with pytest.raises(ImportError): >> testdir.parseconfig() >E Failed: DID NOT RAISE <type 'exceptions.ImportError'> > >../../../../work/pytest-4.5.0/testing/test_config.py:596: Failed >__________________________________________________________________ test_plugin_preparse_prevents_setuptools_loading[False] ___________________________________________________________________ > >testdir = <Testdir local('/var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_plugin_preparse_prevents_setuptools_loading1')> >monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fb9d72c50>, block_it = False > > @pytest.mark.parametrize("block_it", [True, False]) > def test_plugin_preparse_prevents_setuptools_loading(testdir, monkeypatch, block_it): > pkg_resources = pytest.importorskip("pkg_resources") > monkeypatch.delenv("PYTEST_DISABLE_PLUGIN_AUTOLOAD", raising=False) > > plugin_module_placeholder = object() > > def my_iter(group, name=None): > assert group == "pytest11" > > class Dist(object): > project_name = "spam" > version = "1.0" > > def _get_metadata(self, name): > return ["foo.txt,sha256=abc,123"] > > class EntryPoint(object): > name = "mytestplugin" > dist = Dist() > > def load(self): > return plugin_module_placeholder > > return iter([EntryPoint()]) > > monkeypatch.setattr(pkg_resources, "iter_entry_points", my_iter) > args = ("-p", "no:mytestplugin") if block_it else () > config = testdir.parseconfig(*args) >> config.pluginmanager.import_plugin("mytestplugin") > >../../../../work/pytest-4.5.0/testing/test_config.py:628: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >../../../../work/pytest-4.5.0-python2_7/lib/_pytest/config/__init__.py:571: in import_plugin > six.reraise(ImportError, new_exc, tb) >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <_pytest.config.PytestPluginManager object at 0x7fb9d72d10>, modname = 'mytestplugin', consider_entry_points = False > > def import_plugin(self, modname, consider_entry_points=False): > """ > Imports a plugin with ``modname``. If ``consider_entry_points`` is True, entry point > names are also considered to find a plugin. > """ > # most often modname refers to builtin modules, e.g. "pytester", > # "terminal" or "capture". Those plugins are registered under their > # basename for historic purposes but must be imported with the > # _pytest prefix. > assert isinstance(modname, six.string_types), ( > "module name as text required, got %r" % modname > ) > modname = str(modname) > if self.is_blocked(modname) or self.get_plugin(modname) is not None: > return > > importspec = "_pytest." + modname if modname in builtin_plugins else modname > self.rewrite_hook.mark_rewrite(importspec) > > if consider_entry_points: > loaded = self.load_setuptools_entrypoints("pytest11", name=modname) > if loaded: > return > > try: >> __import__(importspec) >E ImportError: Error importing plugin "mytestplugin": No module named mytestplugin > >../../../../work/pytest-4.5.0-python2_7/lib/_pytest/config/__init__.py:562: ImportError >____________________________________________________________________ TestTerminal.test_report_collect_after_half_a_second ____________________________________________________________________ > >self = <test_terminal.TestTerminal object at 0x7fba716790> >testdir = <Testdir local('/var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_report_collect_after_half_a_second0')> > > def test_report_collect_after_half_a_second(self, testdir): > """Test for "collecting" being updated after 0.5s""" > > testdir.makepyfile( > **{ > "test1.py": """ > import _pytest.terminal > > _pytest.terminal.REPORT_COLLECTING_RESOLUTION = 0 > > def test_1(): > pass > """, > "test2.py": "def test_2(): pass", > } > ) > > child = testdir.spawn_pytest("-v test1.py test2.py") > child.expect(r"collecting \.\.\.") > child.expect(r"collecting 1 item") > child.expect(r"collecting 2 items") > child.expect(r"collected 2 items") > rest = child.read().decode("utf8") >> assert "2 passed in" in rest >E AssertionError: assert '2 passed in' in ' [0m >\n >\ntest1.py::test_1 [32mPASSED[0m[36m .../latest/warnings.html >\n[1m[33m===================== 2 passed, 1 warnings in 0.05 seconds =====================[0m >\n' > >../../../../work/pytest-4.5.0/testing/test_terminal.py:172: AssertionError >__________________________________________________________________________________ test_as_errors[cmdline] ___________________________________________________________________________________ > >testdir = <Testdir local('/var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_as_errors0')>, pyfile_with_warnings = None, method = 'cmdline' > > @pytest.mark.parametrize("method", ["cmdline", "ini"]) > def test_as_errors(testdir, pyfile_with_warnings, method): > args = ("-W", "error") if method == "cmdline" else () > if method == "ini": > testdir.makeini( > """ > [pytest] > filterwarnings=error > """ > ) > # Use a subprocess, since changing logging level affects other threads > # (xdist). > result = testdir.runpytest_subprocess(*args) > result.stdout.fnmatch_lines( > [ > "E UserWarning: user warning", > "as_errors_module.py:3: UserWarning", >> "* 1 failed in *", > ] > ) >E Failed: nomatch: u'E UserWarning: user warning' >E and: u'==================================================================================== test session starts =====================================================================================' >E and: u'platform linux2 -- Python 2.7.17, pytest-4.5.0, py-1.8.0, pluggy-0.13.1' >E and: u'rootdir: /var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_as_errors0' >E and: u'plugins: hypothesis-4.57.1, backports.unittest-mock-1.5, pyfakefs-3.7.2' >E and: u'collected 1 item' >E and: u'' >E and: u'test_as_errors.py F [100%]' >E and: u'' >E and: u'========================================================================================== FAILURES ==========================================================================================' >E and: u'_________________________________________________________________________________________ test_func __________________________________________________________________________________________' >E and: u'' >E and: u' def test_func():' >E and: u'> assert as_errors_module.foo() == 1' >E and: u'' >E and: u'test_as_errors.py:3: ' >E and: u'_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ' >E and: u'' >E and: u' def foo():' >E and: u'> warnings.warn(UserWarning("user warning"))' >E exact match: u'E UserWarning: user warning' >E nomatch: u'as_errors_module.py:3: UserWarning' >E and: u'' >E exact match: u'as_errors_module.py:3: UserWarning' >E nomatch: u'* 1 failed in *' >E and: u'====================================================================================== warnings summary ======================================================================================' >E and: u'/var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/config/__init__.py:781' >E and: u' /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/config/__init__.py:781: PytestAssertRewriteWarning: Module already imported so cannot be rewritten: backports' >E and: u' self._mark_plugins_for_rewrite(hook)' >E and: u'' >E and: u'-- Docs: https://docs.pytest.org/en/latest/warnings.html' >E and: u'============================================================================ 1 failed, 1 warnings in 0.13 seconds ============================================================================' >E remains unmatched: u'* 1 failed in *' > >../../../../work/pytest-4.5.0/testing/test_warnings.py:108: Failed >------------------------------------------------------------------------------------ Captured stdout call ------------------------------------------------------------------------------------ >running: /usr/bin/python2.7 -mpytest --basetemp=/var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_as_errors0/runpytest-0 -W error > in: /var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_as_errors0 >==================================================================================== test session starts ===================================================================================== >platform linux2 -- Python 2.7.17, pytest-4.5.0, py-1.8.0, pluggy-0.13.1 >rootdir: /var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_as_errors0 >plugins: hypothesis-4.57.1, backports.unittest-mock-1.5, pyfakefs-3.7.2 >collected 1 item > >test_as_errors.py F [100%] > >========================================================================================== FAILURES ========================================================================================== >_________________________________________________________________________________________ test_func __________________________________________________________________________________________ > > def test_func(): >> assert as_errors_module.foo() == 1 > >test_as_errors.py:3: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > > def foo(): >> warnings.warn(UserWarning("user warning")) >E UserWarning: user warning > >as_errors_module.py:3: UserWarning >====================================================================================== warnings summary ====================================================================================== >/var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/config/__init__.py:781 > /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/config/__init__.py:781: PytestAssertRewriteWarning: Module already imported so cannot be rewritten: backports > self._mark_plugins_for_rewrite(hook) > >-- Docs: https://docs.pytest.org/en/latest/warnings.html >============================================================================ 1 failed, 1 warnings in 0.13 seconds ============================================================================ >____________________________________________________________________________________ test_as_errors[ini] _____________________________________________________________________________________ > >testdir = <Testdir local('/var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_as_errors1')>, pyfile_with_warnings = None, method = 'ini' > > @pytest.mark.parametrize("method", ["cmdline", "ini"]) > def test_as_errors(testdir, pyfile_with_warnings, method): > args = ("-W", "error") if method == "cmdline" else () > if method == "ini": > testdir.makeini( > """ > [pytest] > filterwarnings=error > """ > ) > # Use a subprocess, since changing logging level affects other threads > # (xdist). > result = testdir.runpytest_subprocess(*args) > result.stdout.fnmatch_lines( > [ > "E UserWarning: user warning", > "as_errors_module.py:3: UserWarning", >> "* 1 failed in *", > ] > ) >E Failed: nomatch: u'E UserWarning: user warning' >E and: u'==================================================================================== test session starts =====================================================================================' >E and: u'platform linux2 -- Python 2.7.17, pytest-4.5.0, py-1.8.0, pluggy-0.13.1' >E and: u'rootdir: /var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_as_errors1, inifile: tox.ini' >E and: u'plugins: hypothesis-4.57.1, backports.unittest-mock-1.5, pyfakefs-3.7.2' >E and: u'collected 1 item' >E and: u'' >E and: u'test_as_errors.py F [100%]' >E and: u'' >E and: u'========================================================================================== FAILURES ==========================================================================================' >E and: u'_________________________________________________________________________________________ test_func __________________________________________________________________________________________' >E and: u'' >E and: u' def test_func():' >E and: u'> assert as_errors_module.foo() == 1' >E and: u'' >E and: u'test_as_errors.py:3: ' >E and: u'_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ' >E and: u'' >E and: u' def foo():' >E and: u'> warnings.warn(UserWarning("user warning"))' >E exact match: u'E UserWarning: user warning' >E nomatch: u'as_errors_module.py:3: UserWarning' >E and: u'' >E exact match: u'as_errors_module.py:3: UserWarning' >E nomatch: u'* 1 failed in *' >E and: u'====================================================================================== warnings summary ======================================================================================' >E and: u'/var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/config/__init__.py:781' >E and: u' /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/config/__init__.py:781: PytestAssertRewriteWarning: Module already imported so cannot be rewritten: backports' >E and: u' self._mark_plugins_for_rewrite(hook)' >E and: u'' >E and: u'-- Docs: https://docs.pytest.org/en/latest/warnings.html' >E and: u'============================================================================ 1 failed, 1 warnings in 0.13 seconds ============================================================================' >E remains unmatched: u'* 1 failed in *' > >../../../../work/pytest-4.5.0/testing/test_warnings.py:108: Failed >------------------------------------------------------------------------------------ Captured stdout call ------------------------------------------------------------------------------------ >running: /usr/bin/python2.7 -mpytest --basetemp=/var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_as_errors1/runpytest-0 > in: /var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_as_errors1 >==================================================================================== test session starts ===================================================================================== >platform linux2 -- Python 2.7.17, pytest-4.5.0, py-1.8.0, pluggy-0.13.1 >rootdir: /var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_as_errors1, inifile: tox.ini >plugins: hypothesis-4.57.1, backports.unittest-mock-1.5, pyfakefs-3.7.2 >collected 1 item > >test_as_errors.py F [100%] > >========================================================================================== FAILURES ========================================================================================== >_________________________________________________________________________________________ test_func __________________________________________________________________________________________ > > def test_func(): >> assert as_errors_module.foo() == 1 > >test_as_errors.py:3: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > > def foo(): >> warnings.warn(UserWarning("user warning")) >E UserWarning: user warning > >as_errors_module.py:3: UserWarning >====================================================================================== warnings summary ====================================================================================== >/var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/config/__init__.py:781 > /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/config/__init__.py:781: PytestAssertRewriteWarning: Module already imported so cannot be rewritten: backports > self._mark_plugins_for_rewrite(hook) > >-- Docs: https://docs.pytest.org/en/latest/warnings.html >============================================================================ 1 failed, 1 warnings in 0.13 seconds ============================================================================ >________________________________________________________________ TestDeprecationWarningsByDefault.test_shown_by_default[True] ________________________________________________________________ > >self = <test_warnings.TestDeprecationWarningsByDefault instance at 0x7fb88f0730> >testdir = <Testdir local('/var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_shown_by_default0')>, customize_filters = True > > @pytest.mark.parametrize("customize_filters", [True, False]) > def test_shown_by_default(self, testdir, customize_filters): > """Show deprecation warnings by default, even if user has customized the warnings filters (#4013).""" > self.create_file(testdir) > if customize_filters: > testdir.makeini( > """ > [pytest] > filterwarnings = > once::UserWarning > """ > ) > result = testdir.runpytest_subprocess() > result.stdout.fnmatch_lines( > [ > "*== %s ==*" % WARNINGS_SUMMARY_HEADER, > "*test_shown_by_default.py:3: DeprecationWarning: collection", > "*test_shown_by_default.py:7: PendingDeprecationWarning: test run", >> "* 1 passed, 2 warnings*", > ] > ) >E Failed: nomatch: u'*== warnings summary ==*' >E and: u'==================================================================================== test session starts =====================================================================================' >E and: u'platform linux2 -- Python 2.7.17, pytest-4.5.0, py-1.8.0, pluggy-0.13.1' >E and: u'rootdir: /var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_shown_by_default0, inifile: tox.ini' >E and: u'plugins: hypothesis-4.57.1, backports.unittest-mock-1.5, pyfakefs-3.7.2' >E and: u'collected 1 item' >E and: u'' >E and: u'test_shown_by_default.py . [100%]' >E and: u'' >E fnmatch: u'*== warnings summary ==*' >E with: u'====================================================================================== warnings summary ======================================================================================' >E nomatch: u'*test_shown_by_default.py:3: DeprecationWarning: collection' >E and: u'/var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/config/__init__.py:781' >E and: u' /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/config/__init__.py:781: PytestAssertRewriteWarning: Module already imported so cannot be rewritten: backports' >E and: u' self._mark_plugins_for_rewrite(hook)' >E and: u'' >E and: u'test_shown_by_default.py:3' >E fnmatch: u'*test_shown_by_default.py:3: DeprecationWarning: collection' >E with: u' /var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_shown_by_default0/test_shown_by_default.py:3: DeprecationWarning: collection' >E nomatch: u'*test_shown_by_default.py:7: PendingDeprecationWarning: test run' >E and: u' warnings.warn(DeprecationWarning("collection"))' >E and: u'' >E and: u'test_shown_by_default.py::test_foo' >E fnmatch: u'*test_shown_by_default.py:7: PendingDeprecationWarning: test run' >E with: u' /var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_shown_by_default0/test_shown_by_default.py:7: PendingDeprecationWarning: test run' >E nomatch: u'* 1 passed, 2 warnings*' >E and: u' warnings.warn(PendingDeprecationWarning("test run"))' >E and: u'' >E and: u'-- Docs: https://docs.pytest.org/en/latest/warnings.html' >E and: u'============================================================================ 1 passed, 3 warnings in 0.05 seconds ============================================================================' >E remains unmatched: u'* 1 passed, 2 warnings*' > >../../../../work/pytest-4.5.0/testing/test_warnings.py:521: Failed >------------------------------------------------------------------------------------ Captured stdout call ------------------------------------------------------------------------------------ >running: /usr/bin/python2.7 -mpytest --basetemp=/var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_shown_by_default0/runpytest-0 > in: /var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_shown_by_default0 >==================================================================================== test session starts ===================================================================================== >platform linux2 -- Python 2.7.17, pytest-4.5.0, py-1.8.0, pluggy-0.13.1 >rootdir: /var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_shown_by_default0, inifile: tox.ini >plugins: hypothesis-4.57.1, backports.unittest-mock-1.5, pyfakefs-3.7.2 >collected 1 item > >test_shown_by_default.py . [100%] > >====================================================================================== warnings summary ====================================================================================== >/var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/config/__init__.py:781 > /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/config/__init__.py:781: PytestAssertRewriteWarning: Module already imported so cannot be rewritten: backports > self._mark_plugins_for_rewrite(hook) > >test_shown_by_default.py:3 > /var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_shown_by_default0/test_shown_by_default.py:3: DeprecationWarning: collection > warnings.warn(DeprecationWarning("collection")) > >test_shown_by_default.py::test_foo > /var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_shown_by_default0/test_shown_by_default.py:7: PendingDeprecationWarning: test run > warnings.warn(PendingDeprecationWarning("test run")) > >-- Docs: https://docs.pytest.org/en/latest/warnings.html >============================================================================ 1 passed, 3 warnings in 0.05 seconds ============================================================================ >_______________________________________________________________ TestDeprecationWarningsByDefault.test_shown_by_default[False] ________________________________________________________________ > >self = <test_warnings.TestDeprecationWarningsByDefault instance at 0x7fb87fcb40> >testdir = <Testdir local('/var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_shown_by_default1')>, customize_filters = False > > @pytest.mark.parametrize("customize_filters", [True, False]) > def test_shown_by_default(self, testdir, customize_filters): > """Show deprecation warnings by default, even if user has customized the warnings filters (#4013).""" > self.create_file(testdir) > if customize_filters: > testdir.makeini( > """ > [pytest] > filterwarnings = > once::UserWarning > """ > ) > result = testdir.runpytest_subprocess() > result.stdout.fnmatch_lines( > [ > "*== %s ==*" % WARNINGS_SUMMARY_HEADER, > "*test_shown_by_default.py:3: DeprecationWarning: collection", > "*test_shown_by_default.py:7: PendingDeprecationWarning: test run", >> "* 1 passed, 2 warnings*", > ] > ) >E Failed: nomatch: u'*== warnings summary ==*' >E and: u'==================================================================================== test session starts =====================================================================================' >E and: u'platform linux2 -- Python 2.7.17, pytest-4.5.0, py-1.8.0, pluggy-0.13.1' >E and: u'rootdir: /var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_shown_by_default1' >E and: u'plugins: hypothesis-4.57.1, backports.unittest-mock-1.5, pyfakefs-3.7.2' >E and: u'collected 1 item' >E and: u'' >E and: u'test_shown_by_default.py . [100%]' >E and: u'' >E fnmatch: u'*== warnings summary ==*' >E with: u'====================================================================================== warnings summary ======================================================================================' >E nomatch: u'*test_shown_by_default.py:3: DeprecationWarning: collection' >E and: u'/var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/config/__init__.py:781' >E and: u' /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/config/__init__.py:781: PytestAssertRewriteWarning: Module already imported so cannot be rewritten: backports' >E and: u' self._mark_plugins_for_rewrite(hook)' >E and: u'' >E and: u'test_shown_by_default.py:3' >E fnmatch: u'*test_shown_by_default.py:3: DeprecationWarning: collection' >E with: u' /var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_shown_by_default1/test_shown_by_default.py:3: DeprecationWarning: collection' >E nomatch: u'*test_shown_by_default.py:7: PendingDeprecationWarning: test run' >E and: u' warnings.warn(DeprecationWarning("collection"))' >E and: u'' >E and: u'test_shown_by_default.py::test_foo' >E fnmatch: u'*test_shown_by_default.py:7: PendingDeprecationWarning: test run' >E with: u' /var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_shown_by_default1/test_shown_by_default.py:7: PendingDeprecationWarning: test run' >E nomatch: u'* 1 passed, 2 warnings*' >E and: u' warnings.warn(PendingDeprecationWarning("test run"))' >E and: u'' >E and: u'-- Docs: https://docs.pytest.org/en/latest/warnings.html' >E and: u'============================================================================ 1 passed, 3 warnings in 0.05 seconds ============================================================================' >E remains unmatched: u'* 1 passed, 2 warnings*' > >../../../../work/pytest-4.5.0/testing/test_warnings.py:521: Failed >------------------------------------------------------------------------------------ Captured stdout call ------------------------------------------------------------------------------------ >running: /usr/bin/python2.7 -mpytest --basetemp=/var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_shown_by_default1/runpytest-0 > in: /var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_shown_by_default1 >==================================================================================== test session starts ===================================================================================== >platform linux2 -- Python 2.7.17, pytest-4.5.0, py-1.8.0, pluggy-0.13.1 >rootdir: /var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_shown_by_default1 >plugins: hypothesis-4.57.1, backports.unittest-mock-1.5, pyfakefs-3.7.2 >collected 1 item > >test_shown_by_default.py . [100%] > >====================================================================================== warnings summary ====================================================================================== >/var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/config/__init__.py:781 > /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/config/__init__.py:781: PytestAssertRewriteWarning: Module already imported so cannot be rewritten: backports > self._mark_plugins_for_rewrite(hook) > >test_shown_by_default.py:3 > /var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_shown_by_default1/test_shown_by_default.py:3: DeprecationWarning: collection > warnings.warn(DeprecationWarning("collection")) > >test_shown_by_default.py::test_foo > /var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_shown_by_default1/test_shown_by_default.py:7: PendingDeprecationWarning: test run > warnings.warn(PendingDeprecationWarning("test run")) > >-- Docs: https://docs.pytest.org/en/latest/warnings.html >============================================================================ 1 passed, 3 warnings in 0.05 seconds ============================================================================ >____________________________________________________________________ TestDeprecationWarningsByDefault.test_hidden_by_ini _____________________________________________________________________ > >self = <test_warnings.TestDeprecationWarningsByDefault instance at 0x7fb87f2780> >testdir = <Testdir local('/var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_hidden_by_ini0')> > > def test_hidden_by_ini(self, testdir): > self.create_file(testdir) > testdir.makeini( > """ > [pytest] > filterwarnings = > ignore::DeprecationWarning > ignore::PendingDeprecationWarning > """ > ) > result = testdir.runpytest_subprocess() >> assert WARNINGS_SUMMARY_HEADER not in result.stdout.str() >E AssertionError: assert 'warnings summary' not in '=================...=================' >E 'warnings summary' is contained here: >E ========= warnings summary ====================================================================================== >E ? ++++++++++++++++ >E /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/config/__init__.py:781 >E /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/config/__init__.py:781: PytestAssertRewriteWarning: Module already imported so cannot be rewritten: backports >E self._mark_plugins_for_rewrite(hook) >E ... >E >E ...Full output truncated (3 lines hidden), use '-vv' to show > >../../../../work/pytest-4.5.0/testing/test_warnings.py:536: AssertionError >------------------------------------------------------------------------------------ Captured stdout call ------------------------------------------------------------------------------------ >running: /usr/bin/python2.7 -mpytest --basetemp=/var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_hidden_by_ini0/runpytest-0 > in: /var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_hidden_by_ini0 >==================================================================================== test session starts ===================================================================================== >platform linux2 -- Python 2.7.17, pytest-4.5.0, py-1.8.0, pluggy-0.13.1 >rootdir: /var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_hidden_by_ini0, inifile: tox.ini >plugins: hypothesis-4.57.1, backports.unittest-mock-1.5, pyfakefs-3.7.2 >collected 1 item > >test_hidden_by_ini.py . [100%] > >====================================================================================== warnings summary ====================================================================================== >/var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/config/__init__.py:781 > /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/config/__init__.py:781: PytestAssertRewriteWarning: Module already imported so cannot be rewritten: backports > self._mark_plugins_for_rewrite(hook) > >-- Docs: https://docs.pytest.org/en/latest/warnings.html >============================================================================ 1 passed, 1 warnings in 0.05 seconds ============================================================================ >____________________________________________________________________ TestDeprecationWarningsByDefault.test_hidden_by_mark ____________________________________________________________________ > >self = <test_warnings.TestDeprecationWarningsByDefault instance at 0x7fb8e597d0> >testdir = <Testdir local('/var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_hidden_by_mark0')> > > def test_hidden_by_mark(self, testdir): > """Should hide the deprecation warning from the function, but the warning during collection should > be displayed normally. > """ > self.create_file( > testdir, > mark='@pytest.mark.filterwarnings("ignore::PendingDeprecationWarning")', > ) > result = testdir.runpytest_subprocess() > result.stdout.fnmatch_lines( > [ > "*== %s ==*" % WARNINGS_SUMMARY_HEADER, > "*test_hidden_by_mark.py:3: DeprecationWarning: collection", >> "* 1 passed, 1 warnings*", > ] > ) >E Failed: nomatch: u'*== warnings summary ==*' >E and: u'==================================================================================== test session starts =====================================================================================' >E and: u'platform linux2 -- Python 2.7.17, pytest-4.5.0, py-1.8.0, pluggy-0.13.1' >E and: u'rootdir: /var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_hidden_by_mark0' >E and: u'plugins: hypothesis-4.57.1, backports.unittest-mock-1.5, pyfakefs-3.7.2' >E and: u'collected 1 item' >E and: u'' >E and: u'test_hidden_by_mark.py . [100%]' >E and: u'' >E fnmatch: u'*== warnings summary ==*' >E with: u'====================================================================================== warnings summary ======================================================================================' >E nomatch: u'*test_hidden_by_mark.py:3: DeprecationWarning: collection' >E and: u'/var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/config/__init__.py:781' >E and: u' /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/config/__init__.py:781: PytestAssertRewriteWarning: Module already imported so cannot be rewritten: backports' >E and: u' self._mark_plugins_for_rewrite(hook)' >E and: u'' >E and: u'test_hidden_by_mark.py:3' >E fnmatch: u'*test_hidden_by_mark.py:3: DeprecationWarning: collection' >E with: u' /var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_hidden_by_mark0/test_hidden_by_mark.py:3: DeprecationWarning: collection' >E nomatch: u'* 1 passed, 1 warnings*' >E and: u' warnings.warn(DeprecationWarning("collection"))' >E and: u'' >E and: u'-- Docs: https://docs.pytest.org/en/latest/warnings.html' >E and: u'============================================================================ 1 passed, 2 warnings in 0.05 seconds ============================================================================' >E remains unmatched: u'* 1 passed, 1 warnings*' > >../../../../work/pytest-4.5.0/testing/test_warnings.py:551: Failed >------------------------------------------------------------------------------------ Captured stdout call ------------------------------------------------------------------------------------ >running: /usr/bin/python2.7 -mpytest --basetemp=/var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_hidden_by_mark0/runpytest-0 > in: /var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_hidden_by_mark0 >==================================================================================== test session starts ===================================================================================== >platform linux2 -- Python 2.7.17, pytest-4.5.0, py-1.8.0, pluggy-0.13.1 >rootdir: /var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_hidden_by_mark0 >plugins: hypothesis-4.57.1, backports.unittest-mock-1.5, pyfakefs-3.7.2 >collected 1 item > >test_hidden_by_mark.py . [100%] > >====================================================================================== warnings summary ====================================================================================== >/var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/config/__init__.py:781 > /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/config/__init__.py:781: PytestAssertRewriteWarning: Module already imported so cannot be rewritten: backports > self._mark_plugins_for_rewrite(hook) > >test_hidden_by_mark.py:3 > /var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_hidden_by_mark0/test_hidden_by_mark.py:3: DeprecationWarning: collection > warnings.warn(DeprecationWarning("collection")) > >-- Docs: https://docs.pytest.org/en/latest/warnings.html >============================================================================ 1 passed, 2 warnings in 0.05 seconds ============================================================================ >__________________________________________________________________ TestDeprecationWarningsByDefault.test_hidden_by_cmdline ___________________________________________________________________ > >self = <test_warnings.TestDeprecationWarningsByDefault instance at 0x7fb87ad910> >testdir = <Testdir local('/var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_hidden_by_cmdline0')> > > def test_hidden_by_cmdline(self, testdir): > self.create_file(testdir) > result = testdir.runpytest_subprocess( > "-W", > "ignore::DeprecationWarning", > "-W", > "ignore::PendingDeprecationWarning", > ) >> assert WARNINGS_SUMMARY_HEADER not in result.stdout.str() >E AssertionError: assert 'warnings summary' not in '=================...=================' >E 'warnings summary' is contained here: >E ========= warnings summary ====================================================================================== >E ? ++++++++++++++++ >E /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/config/__init__.py:781 >E /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/config/__init__.py:781: PytestAssertRewriteWarning: Module already imported so cannot be rewritten: backports >E self._mark_plugins_for_rewrite(hook) >E ... >E >E ...Full output truncated (3 lines hidden), use '-vv' to show > >../../../../work/pytest-4.5.0/testing/test_warnings.py:563: AssertionError >------------------------------------------------------------------------------------ Captured stdout call ------------------------------------------------------------------------------------ >running: /usr/bin/python2.7 -mpytest --basetemp=/var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_hidden_by_cmdline0/runpytest-0 -W ignore::DeprecationWarning -W ignore::PendingDeprecationWarning > in: /var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_hidden_by_cmdline0 >==================================================================================== test session starts ===================================================================================== >platform linux2 -- Python 2.7.17, pytest-4.5.0, py-1.8.0, pluggy-0.13.1 >rootdir: /var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_hidden_by_cmdline0 >plugins: hypothesis-4.57.1, backports.unittest-mock-1.5, pyfakefs-3.7.2 >collected 1 item > >test_hidden_by_cmdline.py . [100%] > >====================================================================================== warnings summary ====================================================================================== >/var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/config/__init__.py:781 > /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/config/__init__.py:781: PytestAssertRewriteWarning: Module already imported so cannot be rewritten: backports > self._mark_plugins_for_rewrite(hook) > >-- Docs: https://docs.pytest.org/en/latest/warnings.html >============================================================================ 1 passed, 1 warnings in 0.05 seconds ============================================================================ >___________________________________________________________________ TestDeprecationWarningsByDefault.test_hidden_by_system ___________________________________________________________________ > >self = <test_warnings.TestDeprecationWarningsByDefault instance at 0x7fb883d3c0> >testdir = <Testdir local('/var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_hidden_by_system0')> >monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fb867a310> > > def test_hidden_by_system(self, testdir, monkeypatch): > self.create_file(testdir) > monkeypatch.setenv(str("PYTHONWARNINGS"), str("once::UserWarning")) > result = testdir.runpytest_subprocess() >> assert WARNINGS_SUMMARY_HEADER not in result.stdout.str() >E AssertionError: assert 'warnings summary' not in '=================...=================' >E 'warnings summary' is contained here: >E ========= warnings summary ====================================================================================== >E ? ++++++++++++++++ >E /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/config/__init__.py:781 >E /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/config/__init__.py:781: PytestAssertRewriteWarning: Module already imported so cannot be rewritten: backports >E self._mark_plugins_for_rewrite(hook) >E ... >E >E ...Full output truncated (3 lines hidden), use '-vv' to show > >../../../../work/pytest-4.5.0/testing/test_warnings.py:569: AssertionError >------------------------------------------------------------------------------------ Captured stdout call ------------------------------------------------------------------------------------ >running: /usr/bin/python2.7 -mpytest --basetemp=/var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_hidden_by_system0/runpytest-0 > in: /var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_hidden_by_system0 >==================================================================================== test session starts ===================================================================================== >platform linux2 -- Python 2.7.17, pytest-4.5.0, py-1.8.0, pluggy-0.13.1 >rootdir: /var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_hidden_by_system0 >plugins: hypothesis-4.57.1, backports.unittest-mock-1.5, pyfakefs-3.7.2 >collected 1 item > >test_hidden_by_system.py . [100%] > >====================================================================================== warnings summary ====================================================================================== >/var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/config/__init__.py:781 > /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/config/__init__.py:781: PytestAssertRewriteWarning: Module already imported so cannot be rewritten: backports > self._mark_plugins_for_rewrite(hook) > >-- Docs: https://docs.pytest.org/en/latest/warnings.html >============================================================================ 1 passed, 1 warnings in 0.05 seconds ============================================================================ >___________________________________________________________________________ TestRequestBasic.test_request_garbage ____________________________________________________________________________ > >self = <fixtures.TestRequestBasic object at 0x7fb96fc490>, testdir = <Testdir local('/var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_request_garbage0')> > > @pytest.mark.skipif( > hasattr(sys, "pypy_version_info"), > reason="this method of test doesn't work on pypy", > ) > def test_request_garbage(self, testdir): > try: > import xdist # noqa > except ImportError: > pass > else: > pytest.xfail("this test is flaky when executed with xdist") > testdir.makepyfile( > """ > import sys > import pytest > from _pytest.fixtures import PseudoFixtureDef > import gc > > @pytest.fixture(autouse=True) > def something(request): > original = gc.get_debug() > gc.set_debug(gc.DEBUG_SAVEALL) > gc.collect() > > yield > > try: > gc.collect() > leaked = [x for _ in gc.garbage if isinstance(_, PseudoFixtureDef)] > assert leaked == [] > finally: > gc.set_debug(original) > > def test_func(): > pass > """ > ) > result = testdir.runpytest_subprocess() >> result.stdout.fnmatch_lines(["* 1 passed in *"]) >E Failed: nomatch: '* 1 passed in *' >E and: u'==================================================================================== test session starts =====================================================================================' >E and: u'platform linux2 -- Python 2.7.17, pytest-4.5.0, py-1.8.0, pluggy-0.13.1' >E and: u'rootdir: /var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_request_garbage0' >E and: u'plugins: hypothesis-4.57.1, backports.unittest-mock-1.5, pyfakefs-3.7.2' >E and: u'collected 1 item' >E and: u'' >E and: u'test_request_garbage.py . [100%]' >E and: u'' >E and: u'====================================================================================== warnings summary ======================================================================================' >E and: u'/var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/config/__init__.py:781' >E and: u' /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/config/__init__.py:781: PytestAssertRewriteWarning: Module already imported so cannot be rewritten: backports' >E and: u' self._mark_plugins_for_rewrite(hook)' >E and: u'' >E and: u'-- Docs: https://docs.pytest.org/en/latest/warnings.html' >E and: u'============================================================================ 1 passed, 1 warnings in 0.11 seconds ============================================================================' >E remains unmatched: '* 1 passed in *' > >../../../../work/pytest-4.5.0/testing/python/fixtures.py:539: Failed >------------------------------------------------------------------------------------ Captured stdout call ------------------------------------------------------------------------------------ >running: /usr/bin/python2.7 -mpytest --basetemp=/var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_request_garbage0/runpytest-0 > in: /var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_request_garbage0 >==================================================================================== test session starts ===================================================================================== >platform linux2 -- Python 2.7.17, pytest-4.5.0, py-1.8.0, pluggy-0.13.1 >rootdir: /var/tmp/portage/dev-python/pytest-4.5.0/temp/pytest-of-portage/pytest-0/test_request_garbage0 >plugins: hypothesis-4.57.1, backports.unittest-mock-1.5, pyfakefs-3.7.2 >collected 1 item > >test_request_garbage.py . [100%] > >====================================================================================== warnings summary ====================================================================================== >/var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/config/__init__.py:781 > /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/config/__init__.py:781: PytestAssertRewriteWarning: Module already imported so cannot be rewritten: backports > self._mark_plugins_for_rewrite(hook) > >-- Docs: https://docs.pytest.org/en/latest/warnings.html >============================================================================ 1 passed, 1 warnings in 0.11 seconds ============================================================================ >====================================================================================== warnings summary ====================================================================================== >/var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/config/__init__.py:781 > /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0-python2_7/lib/_pytest/config/__init__.py:781: PytestAssertRewriteWarning: Module already imported so cannot be rewritten: backports > self._mark_plugins_for_rewrite(hook) > >testing/test_warnings.py::test_group_warnings_by_message > /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0/testing/test_warnings.py:701: PytestExperimentalApiWarning: testdir.copy_example is an experimental api that may change over time > testdir.copy_example("warnings/test_group_warnings_by_message.py") > >-- Docs: https://docs.pytest.org/en/latest/warnings.html >================================================================================== short test summary info =================================================================================== >FAILED testing/test_assertion.py::TestAssert_reprcompare_attrsclass::test_attrs - AssertionError: assert False >FAILED testing/test_assertion.py::TestAssert_reprcompare_attrsclass::test_attrs_verbose - AssertionError: assert False >FAILED testing/test_assertion.py::TestAssert_reprcompare_attrsclass::test_attrs_with_attribute_comparison_off - DeprecationWarning: The usage of `cmp` is deprecated and will be removed on... >FAILED testing/acceptance_test.py::TestGeneralUsage::test_early_load_setuptools_name[True] - AssertionError: assert [] == ['mycov', 'myplugin1', 'myplugin2'] >FAILED testing/acceptance_test.py::TestGeneralUsage::test_early_load_setuptools_name[False] - AssertionError: assert [] == ['myplugin1', 'myplugin2', 'mycov'] >FAILED testing/acceptance_test.py::test_frame_leak_on_failing_test - Failed: nomatch: '*1 failed, 1 passed in*' >FAILED testing/test_assertion.py::TestImportHookInstallation::test_installed_plugin_rewrite[development-plain] - Failed: nomatch: 'E AssertionError' >FAILED testing/test_assertion.py::TestImportHookInstallation::test_installed_plugin_rewrite[development-rewrite] - Failed: nomatch: '*assert 10 == 30*' >FAILED testing/test_assertion.py::TestImportHookInstallation::test_installed_plugin_rewrite[installed-plain] - Failed: nomatch: 'E AssertionError' >FAILED testing/test_assertion.py::TestImportHookInstallation::test_installed_plugin_rewrite[installed-rewrite] - Failed: nomatch: '*assert 10 == 30*' >FAILED testing/test_assertrewrite.py::TestAssertionRewrite::test_dont_rewrite_plugin - AssertionError: assert 'warnings' not in '=====================...=====================' >FAILED testing/test_assertrewrite.py::TestRewriteOnImport::test_rewrite_warning_using_pytest_plugins - Failed: nomatch: '*= 1 passed in *=*' >FAILED testing/test_assertrewrite.py::TestRewriteOnImport::test_rewrite_warning_using_pytest_plugins_env_var - Failed: nomatch: '*= 1 passed in *=*' >FAILED testing/test_collection.py::test_collect_pyargs_with_testpaths - Failed: nomatch: '*1 passed in*' >FAILED testing/test_config.py::test_preparse_ordering_with_setuptools - ImportError: Error importing plugin "mytestplugin": No module named mytestplugin >FAILED testing/test_config.py::test_setuptools_importerror_issue1479 - Failed: DID NOT RAISE <type 'exceptions.ImportError'> >FAILED testing/test_config.py::test_plugin_preparse_prevents_setuptools_loading[False] - ImportError: Error importing plugin "mytestplugin": No module named mytestplugin >FAILED testing/test_terminal.py::TestTerminal::test_report_collect_after_half_a_second - AssertionError: assert '2 passed in' in ' [0m >\n >\ntest1.py::test_1 [32mPASSED[0m[36m .../latest/warnings.html >\n[1m[33m===================== 2 passed, 1 warnings in 0.05 seconds =====================[0m >\n' >FAILED testing/test_warnings.py::test_as_errors[cmdline] - Failed: nomatch: u'E UserWarning: user warning' >FAILED testing/test_warnings.py::test_as_errors[ini] - Failed: nomatch: u'E UserWarning: user warning' >FAILED testing/test_warnings.py::TestDeprecationWarningsByDefault::test_shown_by_default[True] - Failed: nomatch: u'*== warnings summary ==*' >FAILED testing/test_warnings.py::TestDeprecationWarningsByDefault::test_shown_by_default[False] - Failed: nomatch: u'*== warnings summary ==*' >FAILED testing/test_warnings.py::TestDeprecationWarningsByDefault::test_hidden_by_ini - AssertionError: assert 'warnings summary' not in '=================...=================' >FAILED testing/test_warnings.py::TestDeprecationWarningsByDefault::test_hidden_by_mark - Failed: nomatch: u'*== warnings summary ==*' >FAILED testing/test_warnings.py::TestDeprecationWarningsByDefault::test_hidden_by_cmdline - AssertionError: assert 'warnings summary' not in '=================...=================' >FAILED testing/test_warnings.py::TestDeprecationWarningsByDefault::test_hidden_by_system - AssertionError: assert 'warnings summary' not in '=================...=================' >FAILED testing/python/fixtures.py::TestRequestBasic::test_request_garbage - Failed: nomatch: '* 1 passed in *' >SKIPPED [1] testing/code/test_excinfo.py:1324: condition: sys.version_info[0] < 3 >SKIPPED [1] /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0/testing/test_terminal.py:1467: could not import 'xdist' >SKIPPED [1] testing/test_compat.py:83: asyncio available in Python 3.4+ >SKIPPED [1] testing/test_assertion.py:652: Dataclasses in Python3.7+ >SKIPPED [1] /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0/testing/python/approx.py:414: could not import 'numpy' >SKIPPED [1] /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0/testing/test_terminal.py:1485: could not import 'xdist' >SKIPPED [1] testing/test_assertrewrite.py:444: condition: sys.version_info < (3,5) >SKIPPED [1] /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0/testing/test_terminal.py:714: xdist plugin not installed >SKIPPED [1] testing/test_capture.py:548: only have capsysbinary in python 3 >SKIPPED [1] testing/test_assertion.py:625: Dataclasses in Python3.7+ >SKIPPED [1] testing/test_assertrewrite.py:429: condition: sys.version_info < (3,5) >SKIPPED [1] /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0/testing/python/approx.py:382: could not import 'numpy' >SKIPPED [1] testing/code/test_excinfo.py:1136: condition: sys.version_info[0] < 3 >SKIPPED [1] testing/test_assertion.py:638: Dataclasses in Python3.7+ >SKIPPED [1] testing/acceptance_test.py:1199: async def syntax python 3.5+ only >SKIPPED [1] /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0/testing/test_terminal.py:1581: could not import 'xdist' >SKIPPED [1] /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0/testing/python/approx.py:334: could not import 'numpy' >SKIPPED [1] testing/test_assertion.py:660: Dataclasses in Python3.7+ >SKIPPED [1] testing/test_capture.py:879: python2 has no buffer >SKIPPED [1] /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0/testing/code/test_excinfo.py:279: could not import 'decorator' >SKIPPED [1] testing/test_config.py:220: condition: sys.version_info[0] < 3 >SKIPPED [2] /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0/testing/test_capture.py:963: could not run 'lsof' >SKIPPED [11] /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0/testing/test_runner.py:429: could not import 'xdist.boxed' >SKIPPED [2] testing/code/test_excinfo.py:1222: condition: sys.version_info[0] < 3 >SKIPPED [1] /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0/testing/python/approx.py:480: could not import 'numpy' >SKIPPED [1] testing/test_compat.py:105: async syntax available in Python 3.5+ >SKIPPED [1] testing/test_tmpdir.py:223: win only >SKIPPED [1] /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0/testing/test_terminal.py:1473: could not import 'xdist' >SKIPPED [1] /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0/testing/python/approx.py:491: could not import 'numpy' >SKIPPED [2] testing/code/test_excinfo.py:1264: condition: sys.version_info[0] < 3 >SKIPPED [1] testing/test_assertion.py:1116: Python 3.4+ shows chained exceptions on multiprocess >SKIPPED [1] /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0/testing/python/approx.py:358: could not import 'numpy' >SKIPPED [1] testing/test_capture.py:856: python 3 only behaviour >SKIPPED [5] /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0/testing/python/approx.py:76: could not import 'numpy' >SKIPPED [1] testing/test_assertrewrite.py:280: bytes is a string type in python 2 >SKIPPED [1] /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0/testing/acceptance_test.py:1006: could not import 'zipapp' >SKIPPED [1] testing/test_assertrewrite.py:815: packages without __init__.py not supported on python 2 >SKIPPED [1] testing/test_warnings.py:129: warnings message is unicode is ok in python3 >SKIPPED [1] /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0/testing/python/approx.py:400: could not import 'numpy' >SKIPPED [1] /var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0/testing/test_junitxml.py:1085: could not import 'xdist' >XFAIL testing/python/integration.py::TestMockDecoration::test_wrapped_getfuncargnames_patching > getfuncargnames breaks if mock is imported >XFAIL testing/acceptance_test.py::TestInvocationVariants::test_noclass_discovery_if_not_testcase > decide: feature or bug >XFAIL testing/test_capture.py::TestPerTestCapturing::test_capture_scope_cache > unimplemented feature >XFAIL testing/test_collection.py::TestPrunetraceback::test_collect_report_postprocessing > other mechanism for adding to reporting needed >XFAIL testing/test_config.py::TestParseIni::test_confcutdir > probably not needed >XFAIL testing/test_junitxml.py::test_runs_twice_xdist > reason: [NOTRUN] hangs >XFAIL testing/test_mark.py::TestKeywordSelection::test_keyword_extra_dash >XFAIL testing/test_pytester.py::test_make_hook_recorder > reason: internal reportrecorder tests need refactoring >XFAIL testing/test_runner.py::test_runtest_in_module_ordering >XFAIL testing/python/fixtures.py::TestAutouseDiscovery::test_setup_enabled_functionnode > 'enabled' feature not implemented >XFAIL testing/python/metafunc.py::TestMarkersWithParametrization::test_nested_marks > is this important to support?? >======================================================== 27 failed, 2257 passed, 57 skipped, 11 xfailed, 2 warnings in 849.22 seconds ======================================================== > [31;01m*[0m ERROR: dev-python/pytest-4.5.0::gentoo failed (test phase): > [31;01m*[0m tests failed with python2.7 > [31;01m*[0m > [31;01m*[0m Call stack: > [31;01m*[0m ebuild.sh, line 125: Called src_test > [31;01m*[0m environment, line 2935: Called distutils-r1_src_test > [31;01m*[0m environment, line 1275: Called _distutils-r1_run_foreach_impl 'python_test' > [31;01m*[0m environment, line 457: Called python_foreach_impl 'distutils-r1_run_phase' 'python_test' > [31;01m*[0m environment, line 2544: Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' > [31;01m*[0m environment, line 2057: Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' > [31;01m*[0m environment, line 2055: Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'python_test' > [31;01m*[0m environment, line 863: Called distutils-r1_run_phase 'python_test' > [31;01m*[0m environment, line 1212: Called python_test > [31;01m*[0m environment, line 2895: Called die > [31;01m*[0m The specific snippet of code: > [31;01m*[0m "${EPYTHON}" "${BUILD_DIR}"/lib/pytest.py --lsof -rfsxX || die "tests failed with ${EPYTHON}" > [31;01m*[0m > [31;01m*[0m If you need support, post the output of `emerge --info '=dev-python/pytest-4.5.0::gentoo'`, > [31;01m*[0m the complete build log and the output of `emerge -pqv '=dev-python/pytest-4.5.0::gentoo'`. > [31;01m*[0m The complete build log is located at '/var/tmp/portage/dev-python/pytest-4.5.0/temp/build.log'. > [31;01m*[0m The ebuild environment file is located at '/var/tmp/portage/dev-python/pytest-4.5.0/temp/environment'. > [31;01m*[0m Working directory: '/var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.0' > [31;01m*[0m S: '/var/tmp/portage/dev-python/pytest-4.5.0/work/pytest-4.5.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 719890
: 634976